cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multithread curl. unexpected SIGSEGV

From: Azat Khuzhin <dohardgopro_at_gmail.com>
Date: Mon, 17 Sep 2012 19:17:24 +0400

I compile with this flags.
I have done a mistake there
Char URL[URL_max];

Sorry for the spelling.

From phone.
Azat Khuzhin.
On Sep 17, 2012 5:54 PM, "Maxime Larocque" <maxmtl2002_at_yahoo.ca> wrote:

> Le 17/09/2012 09:40, Azat Khuzhin a écrit :
>
>> URL with https protocol comes after redirect.
>> But because of some specific stuff that this application must do, I
>> must handle redirect myself.
>> Maybe I forgot something.
>>
>> Here is sample of code, that I use for this:
>> https://gist.github.com/**3737325 <https://gist.github.com/3737325>
>>
>> From your code:
>
> char *url[URL_MAX];
> getUrl(url);
> if (!strlen(url)) {
> break;
> } The "url" seems to be a table of pointer to strings, no an actual C
> string. Remove the *, correct its usage everywhere. It may explain why a
> string is converted to a pointer... Do you compile with -Wall -Werror? It
> may have helped. Maxime
>
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-17