Page 1 of 1

Creating PHP socket connection to https location

Posted: Tue Apr 01, 2008 4:46 pm
by thaynejo
I am trying to create a connection to a secure ASP site in order to automate the download process of a list of about 100 text files to begin with and then an additional text file each day.

I have been able to get it to the point where I can physically login, then post a form to the following page:

https://thesite/page.aspx?page=page1&sub=submit

What I would like to do is be able to send the $_POST array to the remote page automatically. I have found very little information on PHP sockets, and even less on connecting to https. Anyone have any help on this?

Also, is it even possible to create a socket connection to the web page above, or does a socket connection have to be made via IP? I have found no information on that either.

Any help would be appreciated.

Thank you.

Re: Creating PHP socket connection to https location

Posted: Tue Apr 01, 2008 6:57 pm
by Christopher
Try cURL.

Re: Creating PHP socket connection to https location

Posted: Wed Apr 02, 2008 9:48 am
by thaynejo
Will do. Thank you.