Reply to fsockopen

Your name:

Reply:


Posted by pete M on 02/01/05 19:17

am not having a lot of success with opening a socket to a secure domain
(php 4.3.8 - apache - openSSL)

$fp = fsockopen($url , 443 ,$errno, $errstr, 30);

have tried the following $urls

-----------------------
$url = 'domain.net';

Bad Request
Your browser sent a request that this server could not understand.

Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

--------------------------------------
$url = 'https://domain.net';

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name
or service not known

------------------------------------------
$url = 'ssl://domain.net';

Bad Request
Your browser sent a request that this server could not understand.

Client sent malformed Host header

-------------------------------------------
$url = 'tls://domain.net';

Bad Request
Your browser sent a request that this server could not understand.

Client sent malformed Host header


Am I missing the obvious as I cannot thing of any other options ;-((

tia
pete

[Back to original 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

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