PDA

View Full Version : requesting html source from a server



threahdead
08-01-2003, 07:23 AM
hi.

i have a problem with some code i am working on.
i connect to a webserver on port 80.

when connected i send a message like that to the server:
"GET /\n".

then i receive the response back into a buffer.
with the GET request i want to receive the html source of the page.
but i only get the server running and the remaining meta informations.

how can i obtain the html source via a GET request?

thanks

threahdead
08-01-2003, 08:04 AM
i figured it out.
thanks

the HTTP/1.1 was missing.

lithium
08-01-2003, 07:52 PM
also HTTP requires two newlines