> Linux newbie here,
> Are there any? I am trying to do automated server requests for html pages
> with cookie support using http POST and GET requests.
> Does anyone have any good suggestions on websites that have tutorials on
> creating a socket to the internet, connecting to a server, header querying
> functions, etc. I am mainly a windows programmer so I only know windows
> system calls to do this but i do understand the general http procedure and
> basic Linux o/s.
On the http layer, I recommend you searching on altavista for webpages
describing the protocol, although it's not very difficult to understand.
Just telnet to a server (port 80) and issue a few GET commands and
you'll have an idea of how simple it is.
On the tcp layer, you have to know that the Windows Winsock API is
largely based upon its unix counterpart. The first difference is that
the UNIX socket API is included in the C library. Furthermore, a few
difference resides in the naming of the constants and functions used.
I don't know why but all those people who designed Windows made
themselves a religion in changing the naming of standard functions.
You may want to refer to your local documentation for this ("info libc"
under Linux will be of great help).
I know for instance that you don't need this "WSAStartup" stuff under
UNIX. For the rest, I can recommend you to use function names you used
to use in your Windows programs and correct the errors after trying to
compilation. The main functions are still very similar between the two
systems (socket, bind, gethostname, blablabal)
Les nombres imitent l'espace, qui est de nature si diffrente.