Posted by tim on 05/21/06 04:12
Eh Lit wrote:
> Thank you for the reply.... However, I forgot to mention in my
> initial post that if I try it with a normal http post on port 80 it
> still throws an error: Something like:
>
> "Unable to find the socket transport "http" - did you forget to enable
> it when you configured PHP?
>
> Can someone check to see if the code I've got does actually send the
> request and get a response on their system?
>
> Thanks
Its worked ok for ssl and port 80 on my gf's pc. There was a http 400
error but it was only a missing carriage return in $reqheader .= "Host:
$host\n";
My only suggestion is recompile php with --enable-sockets as well as
--with-openssl like Colin said earlier.
The full response from neteller was
<HTML>
<HEAD>
<TITLE>NETeller Transfer</TITLE><META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=iso-8859-1">
</HEAD>
<BODY>
HTTP/1.1 200 OK
Connection: close
Date: Sun, 21 May 2006 01:00:03 GMT
Content-Type: text/html; charset=UTF-8
Server: Microsoft-IIS/6.0 Geobytes-GeoSelect/2.1.0.1
Set-Cookie:
WEBTRENDS_ID=80.192.149.30-3837753504.29785201::380E735293EA42E24D4975C6BB5EC4EF;
path=/; expires=Mon, 21-May-2007 01:00:03 GMT
<?xml version="1.0" encoding="ISO-8859-1"?><netdirect version="4.0">
<approval>no</approval>
<error>1020</error>
<custom_1>none</custom_1>
<custom_2>none</custom_2>
<custom_3>none</custom_3>
</netdirect>
</BODY>
</HTML>
Navigation:
[Reply to this message]
|