News for hackers. Stuff that matters.
Re:Secure Your REST API by olivier1664 on Wednesday April 17, 2013 @10:22PM (#5568609)
Please correct me if I'm wrong. HTTPS will encrypt the URL, but the DNS lookup is in clear. So the "username:[email protected]" part will be sniffable/loggable.

http://stackoverflow.com/questions/499591/are-https-urls-enc...

Re:Secure Your REST API by jewel on Wednesday April 17, 2013 @11:19PM (#5568748)
That's incorrect. The URI library will parse the URL into a hostname, username, and password. Only the hostname is sent to the DNS server.

The username and password are sent in the "Authorization" HTTP header, which will be encrypted.