Hey You wrote:

> 
> Thank you for the great response and I know how to post data with 
> Net::HTTP and WWW::Mechanize is great but I wanted something more 
> challenging and it seems that sockets are faster in speed. Also I'm 
> sorry but I don't really understand what you mean by "send a 
> correctly-formatted HTTP POST request and parse the response".

You'll have to write a packet that conforms to RFC 2616, especially the 
part about "POST". Then you'll have to make sense of the response the 
other side will give you.

If you want to work with TCP/IP, and don't understand the basics of it, 
you won't get far with your project. Working on the deeper layers of the 
OSI and TCP models *is* difficult, and requires a lot of reading of the 
respective RFCs.

> I also 
> googled "ruby RFC 2616" and have found this site: 
> http://www.rfc-editor.org/rfc/rfc2616.txt. Is the information I'm 
> looking for in that website? Sorry for all the questions :(.

You haven't read it, have you? To quote from the abstract:

 >   The Hypertext Transfer Protocol (HTTP) is an application-level
 >   protocol for distributed, collaborative, hypermedia information
 >   systems.


-- 
Phillip "CynicalRyan" Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #9:

Give me refactoring or give me death!