I want to write a c programe which sends http head request and read it to a structure or file.I am connecting to the internet via a proxy.can anybody help me ?
I want to write a c programe which sends http head request and read it to a structure or file.I am connecting to the internet via a proxy.can anybody help me ?
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I have written the programe and it works for GET request(created a socket and write GET reuest to the socket in the proxy)but it don't work for HEAD request.
http://www.wireshark.org/
So compare the transactions which your program does with those of a program which is known to work in the same circumstance (eg. your browser).
http://www.rfc-editor.org/
Here you will find the RFCs for the HTML protocol.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.