empty http GET request body
Posted: Sun Mar 07, 2010 8:37 pm
So I'm working on a really simple HTTP client library and I am writing a unit test for a really simple GET request. It makes a GET request. I think I already know the answer to this, but I just want to double check. A GET request has no body, right? Wouldn't it look something like this:
Code: Select all
GET / HTTP/1.1
Host: example.com
Accept-Language: whatever
Whatever-Else: whatever