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 Carl Vondrick on 01/26/06 05:26

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.

 

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

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