Re: @ character in http login
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: @ character in http login

From: Michael B. Trausch <michael.trausch.no.spam@comcast.net>
Date: Sun Apr 23 2006 - 05:35:40 CEST

Gordon Burditt wrote in <124lsguc12j3o95@corp.supernews.com> on Sat April 22
2006 23:18:

>>I am trying to use the basic http://user:password@example.com
>>form for authentication inside a script.
>>
>>My only problem is my username contains the @ character (its an
>>email address). As result, the url seems to be parsing
>>incorrectly.
>>
>>Has anyone found a way around this problem?
>
> You may be able to use something like
> http://username%40hotmail.com:password@example.com
>
> where @ is converted to %40 . The same approach may apply if the
> password contains odd characters like @, colon, space, %, etc.
>
> Gordon L. Burditt

FYI, you may want to read to ensure that the question hasn't been answered
the same way you're about to answer it. It is bad form; the question was
answered twelve minutes prior to you posting the same thing.

        Regards,
        Mike
Received on Mon May 1 03:02:16 2006