cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: fsockopen replacment

From: Michael Wallner <mike_at_iworks.at>
Date: Mon, 28 Nov 2005 11:23:29 +0100

Hi StephenB, you wrote:
> Hi
>
> I'm having a number of problems translating an fsockopen call to a
> remote server. The server is a domain availability checker running on
> port2043 and tied to the calling servers IP address.
>
> The following fsockopen code works fine...
>
> $dac = fsockopen("dac.nic.uk", 2043, $errno, $errstr, 10);
> if (!$dac) {
> echo "$errstr ($errno)<br />\n";
> exit;
> } else {
> //do stuff
> fputs($dac, "domain.co.uk\r\n");
> $resp = fgets($dac,128);
> }

Serious question: Does this look like an HTTP request to you?

-- 
Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-11-28