Re: HTTP socket connection

From: Date: Mon, 21 May 2001 22:50:16 +0000
Subject: Re: HTTP socket connection
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-53789@lists.php.net to get a copy of this message
Hi, install http://stunnel.org/ in localhost:9999 and redirect it to remote_host:443 with stunnel ;) now you can talk "simple" http to localhost:9999 and let stunnel do the dirty work. Hope this helps, Nuno Silva phpman wrote:
I've been working with curl as well. It allows a pretty easy method to access https, however it is limited as far as encrypting data and sending to an https server. So now i'm experimenting with snoopy to simulate a web client. I'm trying to link up with UPS online tools, but the sob's only know java. I've posted to this news group with questions pertaining to this stuff, but nobody seems to understand what I'm talking about. There has to something out there, as I'm sure somebody has to have done this before. -dave ""Tolga "thorr" Orhon"" <thorr@asenacorp.com> wrote in message news:9e3no5$hld$1@toye.p.sourceforge.net...
As far as I know you cant do that with standard socket connection as SSL needs more than that. One solution that I am currently using is using Curl extensions of PHP which is working just fine. But you may need to
recompile
PHP with curl support. For more info: http://www.php.net/manual/en/ref.curl.php http://curl.haxx.se/ Tolga 'thorr' Orhon "Todd Cary" <todd@aristesoftware.com> wrote in message news:3B055924.FC41DC3E@aristesoftware.com...
For my http socket connection, I am using
      "POST $abs_url HTTP/1.0\r\n".
      "Accept-Language: en-us\r\n".
      "Host: $host:$port\r\n".
      "Connection: close\r\n".
      "Content-type: application/x-www-form-urlencoded\r\n".
which works great. What do I need to change for a SSL connection? Todd -- Todd Cary Ariste Software todd@aristesoftware.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#53789) next »