I'm writing a perl script that should save an EE question to my hard disk (for practice. not sure I'll ever use it...). Now, I'm opening sockets and downloading and everything. The problem is that I must supply user name and password.
This is what I've tried:
print SOCKET "GET $page 1.0\nAuthorization: martinag password\n\n";
(no, that isn't my real password...:-))
I've tried a few solutions like this but I can't find the format to use when supplying user name and password.
Could you help me?
And by the way, is this secure? Is it just as secure as when I enter the information in my browser or should I do something (like using crypt) to get it more secure?