cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: HTTP Response

From: Wilson, Robert <RWilson_at_anhrefractories.com>
Date: Fri, 4 Nov 2005 07:42:42 -0500

I would like to be removed from this user group:

rwilson_at_anhrefractories.com

Thanks!

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Friday, November 04, 2005 4:15 AM
To: the curl tool
Subject: Re: HTTP Response

On Thu, 3 Nov 2005, Pedro Neves wrote:

> I am using libcurl to communicate with an equipment. However, I am
> having a problem, and I do not know how to solve it.

An advice: use the curl-library mailing list for libcurl matters.

> Is there any option that I can use with curl_easy_setopt to find out
> what is going wrong (I am already using VERBOSE and DEBUG)?

As there is _nothing_ going on from the server then there is no way for
you to see that nothing happening. Nothing is not very easy to see...

> In fact, using the DEBUG and the VERBOSE options I notice that the GET

> message is sent, but curl stops and waits for the HTTP OK that never
> comes....thus, my program just gets blocked.

Unless you use a separate thread, the multi interface, the progress
callbacks or similar...

> Is there any way, using curl, to repeat the GET request to the
> equipment if the HTTP OK is not received?

No, you need to first abort the current request and then send another
one. The fact that the server doesn't respond is a server error and
resending a request in that situation is hardly the correct way to
repair such an error.

> Or, is there any way to continue my program without stop it waiting
> for the HTTP OK message?

Several, as I mentioned above.

--
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
Received on 2005-11-04