Socket program doubt

view full story

http://www.linuxquestions.org – Hi folks, I am a beginner in Socket Programming. I am trying to do some simple stuff but had a basic query. I would like to implement something similar to wget in C using TCP sockets (i.e., without using any HTTP libraries). Just give a URL (Example-- $wget www.foo.com/bar.pdf) through command line, construct a HTTP GET request to download the file identified by the URL, and download and save file. Right now trying this only for static HTTP content, but later want to modify for crawling entire site. (HowTos)