Hi, thanks for the response!
I've created a string such as:
Code:
data = "GET / HTTP/1.1\r\n"
"Host: www.servername.nl\r\n"
"Connection: close\r\n"
"\r\n";
I'm getting the right response, so that's great!
In my case I have to have permission to access the data. This is done by a username and password. If I don't provide this information I get a
Code:
HTTP/1.1 401 Authorization Required
response.
Is there a way to provide the username and password in the http headers? My instinct says this isn't possible and I have to talk to the server several times (to provide the name and password) before I can retrieve the page. If this is the case, I have no idea how this is done through HTTP headers.
btw, I've tried ethereal (actually, tehtereal) but haven't made any good progress so far.
edit: I also see a
Code:
WWW-Authenticate: Basic realm="Monica"
in the server response....