Reply to Re: cURL and .htaccess based user authentication

Your name:

Reply:


Posted by Mike P2 on 05/24/07 19:34

On May 24, 5:35 am, semi_e...@inbox.com wrote:
> I found a nice example of ebay login using PHP and cURL athttp://curl.haxx.se/libcurl/php/examples/
>
> Is this technique applicable to sites that authenticate users using a
> browser-opened dialog? (like .htaccess user validation)
>
> The ebay example is a lot to take in for a newbie like me, so I'd like
> to have an idea first whether it is worth the time and effort
> modifying it.
>
> Tips or links to online examples ?
> Cheers.
>
> Semi

I wonder if you can log into those like FTP through a browser, so that
http://username:password@website.com
would authenticate you. I can't think of any websites that I log into
that require that type of login to try it on.

Anyway, I think you are saying you want to use HTTP header
authentication. This just requires sending a few more headers (usually
after a 401 code is returned), which is described officially by the
W3C here:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.8

-Mike PII

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация