Am done with pset6 but want to test if I implemented the server correctly but when I type in the URL (e.g:
192.#.#.#:port#/cat.jpg) into the browser as specified by David, I get the following error
"505 HTTP Version Not Supported" which i think the server should not throw that error considering the fact that the http version is HTTP/1.1
I have tried all sorts and still cannot figure out where the issue is. Also tried running gdb but it appears it is not useable here.
see below my code where I think the issue may lie. Looking through the code the content of check_request should be "HTTP/1.1" . Please help me out
Edit: removed most code
//Check if the http version is "HTTP/1.1"
if(strcasecmp(check_request, "HTTP/1.1") != 0)
printf("505 HTTP Version Not Supported\n");