curl-users
"Connection Aborted" vs. "Empty reply from server"
Date: Wed, 25 Oct 2006 08:33:43 -0700
Hi,
My application is a program on HP-UX using libcurl libraries to HTTP
POST data to a server and send back error messages if it fails.
I have two questions.
1. My application using curl gets CURLOPT_ERRORBUFFER filled with "Empty
reply from server" when I call curl_easy_setopt(s, CURLOPT_ERRORBUFFER,
m_curlError).
At some point, the customer used to get "Connection Aborted" error (I
think for a similar scenario). Can someone let me know if "Connection
Aborted" has replaced "Empty reply from server" sometime in recent
past? I think the answer is yes, but want to know if curl now makes more
fine grained distinction between what used to be generically treated as
"Connection Aborted" earlier?
I find a reference to this in CHANGES.2003: from CHANGES.2003 -
==================================
"Daniel (8 December)
- Fixed the flaw that made -lz appear twice on the link command line.
- After correspondence with Gisle Vanem, I changed the 'connection
aborted'
error text when the FTP response reader failed to more specificly
identify
what the problem is."
=====================================
Unfortunately, this is not sufficient to get me my answer.
2. I tried to find the answer myself by searching the code. I think that
the call failf(data, "Empty reply from server"); in the function
Curl_http_done in http.c file is responsible for filling in the
CURLOPT_ERRORBUFFER.
However, when I did a cvs graph on this to find when the code was
changed, I was disappointed. All dates were "1900/0/0 0:0:0" so I do not
have any way to find this out.
Any help would be greatly appreciated. Please do not hesitate to ask
clarifications. I have done some research on the archives but did not
find the answer to my questions.
Thanks
Best Regards,
Vinay Rai
Received on 2006-10-25