forum-msg-id-133983-edit

Original date:2019-06-20 20:51:37 Edited by: petelomax Subject: Re: curl

enjoy:

include builtins\libcurl.e 
curl_global_init() 
atom curl = curl_easy_init() 
curl_easy_setopt(curl, CURLOPT_URL, "https://data.crossref.org/10.1038/nrd842") 
atom slist = curl_slist_append(NULL, "Accept: application/x-bibtex") 
     slist = curl_slist_append(slist, "style=bibtex") 
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist) 
object res = curl_easy_perform_ex(curl) 
if string(res) then 
    ?res 
else 
    ?"some error"  
end if 
curl_slist_free_all(slist) 
curl_easy_cleanup(curl) 
curl_global_cleanup() 
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu