I'm making a light-weight web server in Java for personal use, and it's mostly functional now. It's going to have minimal functionality (GET, POST, but no cookies).
So far GET and GET (with data) works. I'm stuck on handling POST however.
So far my server manages to identify a POST request and read the Content-Length header. But after the server receives one blank line (to indicate the beginning of POST data with a length of Content-Length), it's failing to read in the POST data.
Through manual telnet, I've been able to manually send a POST request to my server and it works fine. However when Chrome is sending a POST request to my server, it'll send the headers and Content-Length, it'll send the blank line, but nothing after that. I've even tried it with sending in response a [I]HTTP/1.1 100 Continue[/I], but Chrome just still hangs after sending that blank line.
What could be the problem? I'd show you code but a little snippet of the area wouldn't make very much sense, and there's no way I'm going to get any one of you to look over all of my code (~800 lines).
Try recording the request in [url=http://fiddler2.com/fiddler2/]Fiddler[/url].
Sorry, you need to Log In to post a reply to this thread.