i'm building a script which should automatically get content from a passwordprotected server. Usually i collect my info by typing
Now i want to do this automatically (and send it to my gsm :-) ). I can get info from a website using a telnet connection to port 80 and then do
It will return plain html. But that;s for non-protected pages. With protected servers, i get a 401 (authorization required) error. I looked up the RFC but i can;t figure out how it is working ..
Can anybody explain me which header i should send to get the information with my username and password?