You are here: Re: Automate access to password protected sites « PHP Programming Language « IT news, forums, messages
Re: Automate access to password protected sites

Posted by d on 01/26/06 12:52

"Carl Vondrick" <usenet@carlsoft.net> wrote in message
news:UjXBf.15928$Jd.14345@newssvr25.news.prodigy.net...
> Darren wrote:
>> Hello,
>>
>> we're fully paid up and signed up to a password protected site, so this
>> isn't hacking. In this site we can download a price list in CSV
>> format.
>>
>> What I'd like to do is have a PHP script log into the site and download
>> the CSV file so we can then display it on our website.
>>
>> Is this posible?
>>
>> Darren
>>
> How is the site protected? WWW-Auth or regular form? Cookies?
>
> In any case, you can use fsockopen
> [http://us3.php.net/manual/en/function.fsockopen.php] to simulate a
> connection to the server. You just need to pass the right headers.
>
> I prefer this way because it stays within PHP, without branching to *NIX
> command line. This should work just fine on Windows or *NIX.

It also doesn't need any extensions, like cURL. It does, though, take a bit
more knowledge about HTTP, but I totally agree with you - I use fsockopen
for all my HTTP needs ;)

dave

 

Navigation:

[Reply to this 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

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