[Ilugc] [TIP] C language code to download file using HTTP
- From: benignbala@xxxxxxxxx (Balachandran Sivakumar)
- Date: Wed, 16 Nov 2011 11:00:42 +0530
Hi,
On Wed, Nov 16, 2011 at 7:54 AM, Girish Venkatachalam
<girishvenkatachalam at gmail.com> wrote:
#define HTTP_GET_CMD "GET /%s HTTP 1.1\r\n\r\n"
Not nitpicking, but I guess that's an RFC violation ;) HTTP 1.1
says Host header is mandatory. From RFC 2616, :
"A client MUST include a Host header field in all HTTP/1.1 request messages ."
And nice initiative. People on the list, new to socket programming can
possibly start with this. Thanks
--
Thank you
Balachandran Sivakumar
Arise Awake and stop not till the goal is reached.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda
Mail: benignbala at gmail.com
Blog:
http://benignbala.wordpress.com/
Other related posts: