PHP - login to a remote server, trough my own server, with HTTPS, cookies and proxy, and downloading the html
Posted
by
Yunga Mohani
on Stack Overflow
See other posts from Stack Overflow
or by Yunga Mohani
Published on 2010-12-31T12:53:55Z
Indexed on
2010/12/31
13:53 UTC
Read the original article
Hit count: 129
Hello,
so what i am trying to do is this:
- login to the other server with a PHP on my own server (either with my username and pass/or with my cookies)
- then have access to the page i want to display/download
i want to write a PHP script that is located on my own server, that automatically does a login to another server, that uses HTTPS and a web form for login. after the login i have access to that page that i am trying to download. i dont know if it would be possible to login and download the html only with the cookies that i have in my browser through a previous login, or if i need to do the login in my php script through some https login method. can i do any of this with curl or fsocksopen or what would be the best way to realize this?
thanks in advance!
© Stack Overflow or respective owner