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: <simonp@nospam.com>
Date: Sun Apr 23 2006 - 21:52:43 CEST

Michael B. Trausch <michael.trausch.no.spam@comcast.net> wrote:

>
> Very good... I didn't realize that the server would recognize it in that
> fashion. You could probably use urldecode() for getting the %40 out of it,
> did you try it that way?
>
> If you do, I'd be curious to see the result. I don't have the ambition to
> code that up for a test right now, since I've got other things keeping my
> plate rather full at the moment... <G>
>
> - Mike

Another solution I've discovered, that is probably more flexible
inside a script, is to use the Snoopy php class:

http://sourceforge.net/projects/snoopy/

Snoopy acts like a web browser inside the script, so username and
password can be set as properties of the class, and sent to the
server requiring basic authentication.

The results are then returned as an array.

Cheers
Simon

-- 
Stupendous Tales
www.stupendoustales.com
Speculative Fiction, Pulp Dreams
Received on Mon May 1 03:02:29 2006