doom3-gpl
Doom 3 GPL source release
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
neo
curl
docs
examples
http-post.c
Go to the documentation of this file.
1
/*****************************************************************************
2
* _ _ ____ _
3
* Project ___| | | | _ \| |
4
* / __| | | | |_) | |
5
* | (__| |_| | _ <| |___
6
* \___|\___/|_| \_\_____|
7
*
8
* $Id: http-post.c,v 1.1 2002/01/10 09:00:02 bagder Exp $
9
*/
10
11
#include <stdio.h>
12
#include <
curl/curl.h
>
13
14
int
main
(
void
)
15
{
16
CURL
*curl;
17
CURLcode
res
;
18
19
curl =
curl_easy_init
();
20
if
(curl) {
21
/* First set the URL that is about to receive our POST. This URL can
22
just as well be a https:// URL if that is what should receive the
23
data. */
24
curl_easy_setopt
(curl, CURLOPT_URL,
"http://postit.example.com/moo.cgi"
);
25
/* Now specify the POST data */
26
curl_easy_setopt
(curl, CURLOPT_POSTFIELDS,
"name=daniel&project=curl"
);
27
28
/* Perform the request, res will get the return code */
29
res =
curl_easy_perform
(curl);
30
31
/* always cleanup */
32
curl_easy_cleanup
(curl);
33
}
34
return
0;
35
}
curl_easy_perform
CURLcode curl_easy_perform(CURL *curl)
Definition:
easy.c:260
CURLcode
CURLcode
Definition:
curl.h:209
curl.h
curl_easy_setopt
CURLcode curl_easy_setopt(CURL *curl, CURLoption option,...)
Definition:
easy.c:217
CURL
void CURL
Definition:
types.h:25
res
GLuint res
Definition:
glext.h:5385
curl_easy_cleanup
void curl_easy_cleanup(CURL *curl)
Definition:
easy.c:288
main
int main(void)
Definition:
http-post.c:14
curl_easy_init
CURL * curl_easy_init(void)
Definition:
easy.c:195
This page is maintained by
Wladimir van der Laan
. Generated on Mon Nov 17 2014 12:23:14 for doom3-gpl by
1.8.6
.