It is indeed not possible to pass the username and password via query parameters in standard HTTP auth. Instead, you use a special URL format, like this:
xxxxxxxxxx
http://username:password@example.com/
This sends the credentials in the standard HTTP "Authorization" header.