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 <obaidmush...@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 <donag...@gmail.com> wrote: > >> On Thu, Jun 10, 2010 at 3:56 PM, Obaid Mushtaq <obaidmush...@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@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 >> > >
_______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers