Re: Fsockopen error
| From: | Jochem Maas | Date: | Wed, 02 Nov 2005 16:35:40 +0000 |
| Subject: | Re: Fsockopen error | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224972@lists.php.net to get a copy of this message | ||
still no info on what your version of php etc.
but that output gives the impression it may not be the OS after all...
are you able to recompile php? (using the --no-ipv6 flag or whatever it mentioned
in the original php error message you posted).
I have no idea how 'invalid' certificates are handled when connecting
to an SSL enabled port ... maybe that's what really causing the problem
have you confirmed that grabbing stuff over normal http does work?...
// something like...
$er = http_post("http://www.php.net", 80, "/" );
Robert Prentice wrote:
I get this error: wget -d -v --delete-after https://www.safetrustprocessing.com Setting --verbose (verbose) to 1 Setting --delete-after (deleteafter) to 1 DEBUG output created by Wget 1.10.1 (Red Hat modified) on linux-gnu. --17:15:16-- https://www.safetrustprocessing.com/=> `index.html'Resolving www.safetrustprocessing.com... 209.200.128.119 Caching www.safetrustprocessing.com => 209.200.128.119 Connecting to www.safetrustprocessing.com|209.200.128.119|:443... connected. Created socket 3. Releasing 0x081fb188 (new refcount 1). Initiating SSL handshake. Handshake successful; connected socket 3 to SSL handle 0x08210a50 certificate: subject: /C=US/O=www.safetrustprocessing.com/OU=https:// services.choicepoint.net/get.jsp?GT91812388/OU=See www.geotrust.com/ resources/cps (c)04/OU=Domain Control Validated - QuickSSL(R)/ CN=www.safetrustprocessing.com issuer: /C=US/O=Equifax Secure Inc./CN=Equifax Secure Global eBusiness CA-1 ERROR: Certificate verification error for www.safetrustprocessing.com: unable to get local issuer certificate To connect to www.safetrustprocessing.com insecurely, use `--no-check- certificate'. Closed 3/SSL 0x8210a50 Unable to establish SSL connection. On Nov 2, 2005, at 11:18 AM, Jochem Maas wrote:Robert Prentice wrote:Even if i change it back to 443 i still get the error.take another look at your initail error message... it indicates a problem related to the machines nameserver/dns setting (specifically IPv6). I'm willing to bet it's nothing to do with php - your OS seems to at fault. note that you never mention anything about what version of software you are using or even what platform you are running on... I'll just assume linux and the prerequisite knowledge: does this work for you?: wget -d -v --delete-after https://www.safetrustprocessing.comRobert On Nov 2, 2005, at 9:54 AM, Jochem Maas wrote:-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpTerence wrote:Robert Prentice wrote: snipthat is the default, but any port is allowed technically ... although putting port 80 under SSL is probably going to cause you a headache sometime/somewhere.$reply = http_post("https://www.safetrustprocessing.com", 80, "/Isnt https supposed to run on port 443? (or other than 80) Just a guess-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpxml_order_processing.php", array("myXml" => $xml)); function http_post ($server, $port, $url, $vars) {