I'm almost there, I already solved a lot of problem, and I'm hoping that's the last one...
that is the result of check50
:) 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
:) Requesting two files in a row (cat.html then cat.jpg) succeeds
The only problem is with /test/ but if I run it with debug50 it works correctly:
GET /test/ HTTP/1.1
Data: <!DOCTYPE html>
<html>
<head>
<title>RickRoll'D</title>
</head>
<body>
<iframe width="420" height="315" src="https://www.youtube.com/embed/oHg5SJYRHA0?autoplay=1&iv_load_policy=3" frameborder="0" allowfullscreen></iframe>
</body>
Length: 271
HTTP/1.1 200 OK
Another problem is that if I test server.c directly on the browser (and not with curl, that works!) I always get 405 method not allowed
Thanks in advance for any suggestions!