[maemo-developers] Problems downloading file on N900 using libcurl ...

From: Obaid Mushtaq obaidmushtaq at gmail.com
Date: Thu Jun 10 19:17:00 EEST 2010
Hi,

The problem was solved by using IPv4 always.

curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);

Thanks for the cooments.

BR,

Obaid

On Thu, Jun 10, 2010 at 4:53 PM, Obaid Mushtaq <obaidmushtaq at gmail.com>wrote:

> Hi,
>
> Yes. I can use PING. The problems seems to be strange to me now. I am
> running the following program on N900.
>
> http://curl.haxx.se/libcurl/c/simple.html
>
> When I put www.google.com there, it doesn't work. For other sites, it
> works. There is no packet generated for the case of google. I have snooped
> for the traffic.
>
> Thanks in advance.
>
> BR,
>
> Obaid
>
>
> On Thu, Jun 10, 2010 at 4:27 PM, Luca Donaggio <donaggio at gmail.com> wrote:
>
>> On Thu, Jun 10, 2010 at 3:56 PM, Obaid Mushtaq <obaidmushtaq at gmail.com>wrote:
>>
>>> Hi,
>>>
>>> I am a new developer on maemo and using libcurl in C to download a file.
>>> When I run the application on normal PC, it works fine but on N900 I get the
>>> following:
>>>
>>> * About to connect() to xyz.com port 80 (#0)
>>> * couldn't connect to host
>>> * Closing connection #0
>>> * Couldn't connect to server
>>>
>>> I have installed the following version of curl:
>>>
>>> Nokia-N900-51-1:~/test# dpkg -l | grep libcurl
>>> ii  libcurl3
>>> 7.18.2-8maemo6+0m5               Multi-protocol file transfer library
>>> (OpenSS
>>>
>>> Any help would be appreciated.
>>>
>>> Regards,
>>>
>>> Obaid
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers at maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>
>>>
>> Myabe it's a dumb question, but ... is there any active connection (gprs,
>> wifi, bluetooth, usbnet) on the device before launching your application?
>>
>> --
>> Luca Donaggio
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100610/70a429ac/attachment.htm>
More information about the maemo-developers mailing list