View Single Post
Posts: 2 | Thanked: 0 times | Joined on Oct 2009
#6
In maemo to use curl is it necessary to start the connection using libconIC api ?
No, not on the n800 at least. You can start your connection manually using the maemo UI. Once a connection has been established, your application should be able to use curl to send HTTP requests.

Is There Any reference document or any examples to access internet using both libconIC and curl?
I'm not sure but there are some libcurl examples here

http://curl.haxx.se/libcurl/c/example.html

And some Maemo4 linconIC examples here

http://maemo.org/maemo_release_docum...00000000000000

Perhaps the easiest thing to do would be to start the connection manually using the maemo UI for the time being and to concentrate on getting libcurl to work in your application. Once this is working you can integrate libiconic

Code:
mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
Is there not a memory leak here, if realloc fails?