Re: Sending username/password
| From: | Robert Cummings | Date: | Fri, 05 Sep 2008 20:30:16 +0000 |
| Subject: | Re: Sending username/password | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279578@lists.php.net to get a copy of this message | ||
On Fri, 2008-09-05 at 15:26 -0500, Jay Moore wrote:
> Robert Cummings wrote:
> > On Fri, 2008-09-05 at 21:07 +0100, Stut wrote:
> >> On 5 Sep 2008, at 21:05, Robert Cummings wrote:
> >>> On Fri, 2008-09-05 at 15:01 -0500, Jay Moore wrote:
> >>>> Greetings list!
> >>>>
> >>>> Is it possible (and if so, how) to send username and password
> >>>> information to a website with PHP?
> >>>>
> >>>> I would like to submit some information to some network devices we
> >>>> have,
> >>>> but they require login credentials to proceed. I would like to
> >>>> bypass
> >>>> the traditional username/password prompt so I can automate the
> >>>> procedure.
> >>>>
> >>>> I hope this makes sense.
> >>> If you mean http auth style login information then you do the
> >>> following:
> >>>
> >>> M»þl2ùÊ$ë=‘„
> >>> http://www.somedomain.com:user@password/the/path/to/resource.html
> >> I think he meant
> >> http://user:password@www.somedomwin.com/the/path/to/resource.html
> >
> > Yeah, that's it lol :)
> >
> > Cheers,
> > Rob.
>
> FYI - Typing this response on my old 286 because Rob's original
> suggestion made my 37.612-core Core2Duo box (used for notepad and
> newsgroups only) explode.
:) Sorry bout that. However, malformed URL bugs that cause your system
to crash can't really be attributed to me ;)
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP