My check50 version 1 gives all :)
but version 2 gives this result
:) server.c exists
:) server compiles
:( Requesting cat.jpg returns 200, image/jpeg, and correct image
:) Requesting cat.html returns 200, text/html, and correct file
:) Requesting cat2.HTML returns 200, text/html, and correct file
:) Requesting cat3.HtMl returns 200, text/html, and correct file
:( Requesting cat.gif returns 200, image/gif, and correct file
:) Requesting favicon.ico returns 200, image/x-icon, and correct file
:) Requesting test.css returns 200, text/css, and correct file
:) Requesting test.js returns 200, text/javascript, and correct file
:) Requesting hello.php returns 200, text/html, and correct output
:( Requesting hello.php? returns 200, text/html, and correct output
\ expected output, not an exit code of 0
:( Requesting hello.php?name=Alice returns 200, text/html, and correct output
\ expected output, not an exit code of 0
:) Requesting /test redirects to /test/
:( Requesting /test/ outputs /test/index.html
:( Requesting directory containing index.php outputs index.php
\ expected output, but not "HTTP/1.1 403 Forbidden\r\nContent-Type:..."
:( Requesting two files in a row (cat.html then cat.jpg) succeeds
although when I am running ./server public
it is showing error 403 Forbidden everytime. Please help me, I will post the code link if you want. Thanks in advance.
EDIT : code deleted as per the rules
\ expected output, not an exit code of 0
from check50 is a seg fault. Are you usingfseek
orftell
in your load function? In that case see thissudo chmod 777 ~/workspace/pset6/public
maybe the problem is in parse only. Please have a look at my code [pastebin.com/MMHqP1WE]. In my last 403 post I wanted to say that the 403 error is called by access function under transfer function which I checked using printf.