cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl crash - curl_easy_perform() ???

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 22 Jun 2005 07:10:48 +0200 (CEST)

On Wed, 22 Jun 2005, Pedro Neves wrote:

>> When you say "stops", you mean it returns before it is complete? If
>> so, what does curl_easy_perform() return?
>
> When I say "stop", it means that the curl_easy_perform() returns completely
> and then it does not go on to the rest of the program. To help, I paste the
> return code below. As you can see in the return code shown below, the reply
> is complete, but the program does not go on from this place (after
> </body></html> it stops).

That is not the return code in the programming sense I was referring to. The
HTML you get is simply downloaded data, the return code is what the function
returns in the function call.

> I am using version 7.14.0 in Linux Ubuntu with kernel 2.6.10.

>> And you get only the partial file? How much is missing? Does it always
>> miss the same amount? Does it always miss a part?
>
> As I mentioned, it gets all the information (as you can see in the return
> code shown above) and then stops.

That sounds like a description of what libcurl does. It gets the info and then
returns. What else would it do?

>> If you _really_ want us to help, you should make an effort to write a small
>> stand-alone source code example that makes your problem appear when
>> operating on a public URL. It would enable us to debug and trace everything
>> easily in our ends.
>
> I can provide you my code in a file. What do you think?

Let me emphasise: a *small* stand-alone source code. If that is what you have,
and it does nothing else than showing your problem, then sure post it.

But you failed to answer several of my questions, so you shouldn't post
anything until we have sorted out what your program does and doesn't.

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