Skip to content

Instantly share code, notes, and snippets.

@axgle
Created October 28, 2009 12:37
Show Gist options
  • Save axgle/220455 to your computer and use it in GitHub Desktop.
Save axgle/220455 to your computer and use it in GitHub Desktop.
#include "stdio.h"
#include <stdlib.h>
#include "string.h"
#include <curl/curl.h>
int main(void)
{
CURL *curl;
char ires;
curl=curl_easy_init();
if(curl){
curl_easy_setopt(curl,CURLOPT_URL,"http://baidu.com");
ires=curl_easy_perform(curl);
printf("%s",ires);
}
printf("good" );
return 0;
}
=================
sudo vim /usr/share/scite/cpp.properties
command.go.needs.*.c=gcc $(ccopts) -std=c99 $(FileNameExt) -o $(FileName) -lcurl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment