The get request should be formatted correctly. I have an application at my work I created that sends Posts and does Gets on the Web server for user tracking. here is the format I used....
GET /path/file.htm HTTP/1.1 <cr>
//(I believe the rest is optional but recommended, especially the Accept: ...not positive though)
User-agent: MyProgramName <cr>
Accept: */* <cr>
<cr>
Place 2 carriage returns at the end, a blank line seems to key servers that you are complete with the request.
I used the User-Agent Field to send my application name so when we parse the logs, we can find out what percentage of total hits are from that app. You can also request the data as Text by putting:
ACCEPT: text/html
instead of the */*. This may be why your getting the gzip data
Can you PM me here in the forum a snippet of your code for accepting data? Maybe you are running into the same issue I had on variable declarations.
|