cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: reagrding error in getting complete server response

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 25 Oct 2013 20:16:55 +0200

On Fri, Oct 25, 2013 at 04:29:35PM +0900, Sunil Chandrasekharan wrote:
> I am using libcurl for perfirming HTTP request and response to my webpage.
> But when getting response, i am not getting the complete server response. the
> response lines get truncated at one point ..and then nothing happens.

Nothing happens, as in the program hangs, or nothing happens as in the program
ends?

> e.g  
>
> .....
> 10-25 15:53:22.264: XXX(14847): Security.8021x:true
> 10-25 15:53:22.264: XXX(14847): Event.AlarmInput:true
> 10-25 15:53:22.264: XXX(14847): Event.AlarmInput.Notification.HTTP.CGI:true
> 10-25 15:53:22.264: XXX(14847):
> Event.AlarmInput.Notification.HTTP.CGI.SingleSession:true
> 10-25 15:53:22.264: XXX(14847): Event.AlarmInpu
>
> There are around 10 more lines in the response, but my current log shows that
> after "Event.AlarmInpu" there is no output.

I don't know what this is. Is this some kind of custom logging output? Is this
the truncated output of the server as received by your program?

> hence i feel the server response data coming is not written properly inside my
> curl function. Please support to rectify this issue and get the complete server
> response.

What happens if you use the curl command-line tool to do the same transfer?
Does that return the whole response? Is the response simply longer than your
buffer length and is therefore deliberately truncated?

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-25