[Cppcms-users] 404 not found with valid URL and POST Request
Brought to you by:
artyom-beilis
|
From: SIMON A. <All...@su...> - 2013-03-10 19:11:08
|
Hello When I try to test my code with the embedded http server (there's no problem when using the FastCGI interface) the following request fail echo 'POST /users/register-new_treat HTTP/1.1\r\nHost: en.tatolocal:8080\r\nAccept-Encoding: identity\r\nContent-Length: 13\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nusername=toto' | nc en.tatolocal 8080 but if I remove the \r just before ContentLength, it works correctly echo 'POST /users/register-new_treat HTTP/1.1\r\nHost: en.tatolocal:8080\r\nAccept-Encoding: identity\nContent-Length: 13\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nusername=toto' | nc en.tatolocal 8080 I suppose it's certainly a little problem in the code which is parsing the HTTP request ? Regards, Allan SIMON Tatoeba Administrator (Sysko) |