All pastes #360283 Raw Edit

Anonymous

public c v1 · immutable
·published 2007-02-17 11:22 UTC
rendered paste body
#include <stdio.h>#include <ctype.h>#include <curl/curl.h>int main(void){        goto_url_f();}int goto_url_f(){        CURL* handle = curl_easy_init();        if(handle != NULL)        {                CURLcode code = curl_easy_setopt(handle, CURLOPT_URL, "http://www.google.com");                if(code != CURLE_OK)                {                        printf("Something happend!\n");                }                else                {                        printf("We have a handle!\n");                }        }        else        {                printf("Something went horribly wrong!\n");        }}