![]() |
2009-11-20
, 07:49
|
Posts: 219 |
Thanked: 94 times |
Joined on Nov 2009
@ Helsinki, Finland
|
#2
|
![]() |
2009-11-20
, 09:01
|
Posts: 2,102 |
Thanked: 1,309 times |
Joined on Sep 2006
|
#3
|
The Following User Says Thank You to lardman For This Useful Post: | ||
![]() |
2009-11-20
, 09:01
|
Posts: 2,102 |
Thanked: 1,309 times |
Joined on Sep 2006
|
#4
|
The Following User Says Thank You to lardman For This Useful Post: | ||
![]() |
2009-11-23
, 13:06
|
Posts: 7 |
Thanked: 0 times |
Joined on Oct 2009
|
#5
|
yes, libconic is used to handle connections (setup, switch, shutdown). It has nothing to do with curl. For curl you do something like this:
CURL *curl;
CURLcode res;
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&resultchunk);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_writebuffer);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
Obviously you'll want some error checking in there too
![]() |
2009-11-24
, 22:10
|
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 ?
Is There Any reference document or any examples to access internet using both libconIC and curl?
mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
I read abt libconic api and i don't understand how it is usuful to access the intenet.
i understand that if an application want to use the internet(to select the IAP) we must use the libconic api.
Then only we can get info from the webpage using curl http.
My Openion is correct or wrong?
libconic is the only monitor to internet connections?
is ConIcConnection pointer is used in curl http?
thanks and regards
kamesh.smartdude.