0

i am getting the following errors on running check50 on server.c

:) server.c exists
:) server compiles
:) HTTP/1.0 returns error code 505
:) Method of 'abcGET' returns error code 405
:) Method of 'GETabc' returns error code 405
:) request-target without starting '/' returns error code 501
:) request-target of abc/hello.php returns error code 501
:) Requesting cat.exe returns error code 501
:) Requesting non-existant file returns error code 404
:) Requesting request-target with " returns error code 400
:( Two spaces after GET returns error code
   \ expected output, but not "HTTP/1.1 200 OK\r\nContent-Type: text/h..."
:) A space within the request target returns error code
:( Two spaces before HTTP/1.1 returns error code
   \ expected output, but not "HTTP/1.1 505 HTTP Version Not Supported..."

:) 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
:) Requesting hello.php?name=Alice returns 200, text/html, and correct output
:) 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 200 OK\r\nContent-Type: text/h..."
:) Requesting two files in a row (cat.html then cat.jpg) succeeds

i am continuously doing changes but not able to catch the fault. here are my todo functions.

parse: [removed to respect honor code]

load: [remove to respect Honor Code]

indexes: [removed to respect Honor Code]

please help.

2
  • 2
    I'm voting to close this question as off-topic because of the honor code. Dec 22 '16 at 16:06
  • If you solved this yourself, please answer and click the checkmark to get this out of the unanswered pool. Thanks. Jan 13 '17 at 23:06

You must log in to answer this question.

Browse other questions tagged .