Creating PHP socket connection to https location

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thaynejo
Forum Newbie
Posts: 14
Joined: Tue Apr 01, 2008 9:06 am

Creating PHP socket connection to https location

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Creating PHP socket connection to https location

Post by Christopher »

Try cURL.
(#10850)
thaynejo
Forum Newbie
Posts: 14
Joined: Tue Apr 01, 2008 9:06 am

Re: Creating PHP socket connection to https location

Post by thaynejo »

Will do. Thank you.
Post Reply