I'm writing an application which requests web data using the C socket library.
There must be something wrong with my requests, because they only work when I use HTTP 1.0, but when I use 1.1 they either hang, or else return slightly corrupted results.
Here's a typical request header my program generates:
GET / HTTP/1.1
User-agent: MyApp 1.0;
Accept: text/html, text/xml, text/plain