curl-and-php
Re: remote server with automatic response
Date: Thu, 14 Feb 2008 10:17:19 +0100 (CET)
On Wed, 13 Feb 2008, StephenB wrote:
> I'm having issues with a remote server which automatically responds with
> results on connection, or when aditional information is sent. It's
> reminiscent of a telnet/mail server, but for EPP requests.
EPP, as in Extensible Provisioning Protocol, is just an XML thing on top of
HTTP. There's nothing like "a telnet/mail server" there.
> The issue is that the response can be caught using output buffering or
> writefunctions, but the only way to stop curl_exec from hanging is to set a
> timeout value.
Why would it "hang" in the first place? You send data, you retrieve data. When
does that hang in a normal situation?
> Not very neatm and sort of defeats the purpose of a fast curl library!
libcurl itself has numerous of ways to offer to avoid that to happen.
> Is there any way of setting curl to exit properly or at least tell curl_exec
> that once it's caught the response to exit immediately. Effectively this is
> a eof issue?
libcurl itself does "exit" once it has read the response.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2008-02-14