Home
last modified time | relevance | path

Searched refs:form (Results 1 – 25 of 171) sorted by relevance

1234567

/curl/lib/
H A Dformdata.c555 form = form->more) { in FormAdd()
556 if(((!form->name || !form->value) && !post) || in FormAdd()
576 form->showfilename : form->value; in FormAdd()
592 if(form->name && form->namelength) { in FormAdd()
609 form->name = Curl_memdup0(form->name, form->namelength ? in FormAdd()
627 form->value = Curl_memdup(form->value, clen); in FormAdd()
635 post = AddHttpPost(form->name, form->namelength, in FormAdd()
638 form->contenttype, form->flags, in FormAdd()
753 if(!form) in curl_formfree()
833 if(!form) in Curl_getformdata()
[all …]
/curl/docs/examples/
H A Dpostit2.c51 curl_mime *form = NULL; in main() local
61 form = curl_mime_init(curl); in main()
64 field = curl_mime_addpart(form); in main()
69 field = curl_mime_addpart(form); in main()
74 field = curl_mime_addpart(form); in main()
86 curl_easy_setopt(curl, CURLOPT_MIMEPOST, form); in main()
99 curl_mime_free(form); in main()
H A Dmulti-post.c41 curl_mime *form = NULL; in main() local
51 form = curl_mime_init(curl); in main()
54 field = curl_mime_addpart(form); in main()
59 field = curl_mime_addpart(form); in main()
64 field = curl_mime_addpart(form); in main()
77 curl_easy_setopt(curl, CURLOPT_MIMEPOST, form); in main()
98 curl_mime_free(form); in main()
/curl/docs/cmdline-opts/
H A Dform-escape.md4 Long: form-escape
5 Help: Escape form fields using backslash
11 - form
13 - --form-escape -F 'field\name=curl' -F 'file=@load"this' $URL
16 # `--form-escape`
18 Pass on names of multipart form fields and files using backslash-escaping
H A Dform-string.md4 Long: form-string
12 - form
14 - --form-string "name=data" $URL
17 # `--form-string`
19 Similar to --form except that the value string for the named parameter is used
21 have no special meaning. Use this in preference to --form if there is any
23 features of --form.
/curl/tests/data/
H A Dtest64376 Content-Type: multipart/form-data; boundary=----------------------------
79 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
84 Content-Disposition: form-data; name="callbackdata"
89 Content-Disposition: form-data; name="filename"
93 Content-Disposition: form-data; name="submit"
97 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
106 Content-Type: multipart/form-data; boundary=----------------------------
114 Content-Disposition: form-data; name="callbackdata"
119 Content-Disposition: form-data; name="filename"
123 Content-Disposition: form-data; name="submit"
[all …]
H A Dtest55443 form-api
76 Content-Type: multipart/form-data; boundary=----------------------------
79 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
84 Content-Disposition: form-data; name="callbackdata"
89 Content-Disposition: form-data; name="filename"
93 Content-Disposition: form-data; name="submit"
98 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
107 Content-Type: multipart/form-data; boundary=----------------------------
115 Content-Disposition: form-data; name="callbackdata"
120 Content-Disposition: form-data; name="filename"
[all …]
H A Dtest118932 …OSTIP:%HTTPPORT/we/want/%TESTNUMBER --form-escape -F name=daniel -F tool=curl --form-string "str1=…
46 ^(Content-Type: multipart/form-data;|-------).*
54 Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32
57 Content-Disposition: form-data; name="name"
61 Content-Disposition: form-data; name="tool"
65 Content-Disposition: form-data; name="str1"
69 Content-Disposition: form-data; name="str2"
73 Content-Disposition: form-data; name="file"; filename="fakerfile"
82 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER.txt"
91 Content-Disposition: form-data; name="file3"; filename="f\\\\ak\\\\er,\\an\\d;.t\"xt"
[all …]
H A Dtest3932 …HTTPPORT/we/want/%TESTNUMBER -F name=daniel -F tool=curl --form-string "str1=@literal" --form-stri…
46 ^(Content-Type: multipart/form-data;|-------).*
54 Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32
57 Content-Disposition: form-data; name="name"
61 Content-Disposition: form-data; name="tool"
65 Content-Disposition: form-data; name="str1"
69 Content-Disposition: form-data; name="str2"
73 Content-Disposition: form-data; name="file"; filename="fakerfile"
82 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER.txt"
91 Content-Disposition: form-data; name="file3"; filename="f\\ak\\er,\an\d;.t%22xt"
[all …]
H A Dtest64576 Content-Type: multipart/form-data; boundary=----------------------------
85 Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
106 Content-Disposition: form-data; name="callbackdata"
129 Content-Disposition: form-data; name="filename"
133 Content-Disposition: form-data; name="submit"
137 Content-Disposition: form-data; name="somename"; filename="somefile.txt"
149 Content-Type: multipart/form-data; boundary=----------------------------
179 Content-Disposition: form-data; name="callbackdata"
202 Content-Disposition: form-data; name="filename"
206 Content-Disposition: form-data; name="submit"
[all …]
H A Dtest65038 form-api
49 HTTP formpost using form API - with redirect and re-POST
82 Content-Disposition: form-data; name="fieldname"
89 Content-Disposition: form-data; name="fieldnam"
93 Content-Disposition: form-data; name="multifile"
129 Content-Disposition: form-data; name="filecontents"
140 Content-Disposition: form-data; name="formlength"
166 Content-Disposition: form-data; name="fieldname"
173 Content-Disposition: form-data; name="fieldnam"
177 Content-Disposition: form-data; name="multifile"
[all …]
H A Dtest105377 ^(Content-Type: multipart/form-data;|------------).*
85 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
88 Content-Disposition: form-data; name="name"
92 Content-Disposition: form-data; name="tool"
96 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
109 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
112 Content-Disposition: form-data; name="name"
116 Content-Disposition: form-data; name="tool"
120 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
H A Dtest946 ^(Content-Type: multipart/form-data;|------------).*
54 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
57 Content-Disposition: form-data; name="name"
61 Content-Disposition: form-data; name="tool"
65 Content-Disposition: form-data; name="file"; filename="test9.txt"
H A Dtest30445 ^(Content-Type: multipart/form-data;|------).*
53 Content-Type: multipart/form-data; boundary=----------------------------qrstuvwxyz0123456789AB
56 Content-Disposition: form-data; name="name"
60 Content-Disposition: form-data; name="tool"
64 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
H A Dtest4446 ^(Content-Type: multipart/form-data;|------).*
54 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
57 Content-Disposition: form-data; name="name"
61 Content-Disposition: form-data; name="tool"
65 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
H A Dtest7153 ^(Content-Type: multipart/form-data;|------------).*
60 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
63 Content-Disposition: form-data; name="name"
67 Content-Disposition: form-data; name="tool"
71 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
H A Dtest25881 ^(Content-Type: multipart/form-data;|------).*
90 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
93 Content-Disposition: form-data; name="name"
97 Content-Disposition: form-data; name="tool"
101 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
116 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
119 Content-Disposition: form-data; name="name"
123 Content-Disposition: form-data; name="tool"
127 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
H A Dtest25977 ^(Content-Type: multipart/form-data;|------).*
87 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
90 Content-Disposition: form-data; name="name"
94 Content-Disposition: form-data; name="tool"
98 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
114 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
117 Content-Disposition: form-data; name="name"
121 Content-Disposition: form-data; name="tool"
125 Content-Disposition: form-data; name="file"; filename="test%TESTNUMBER.txt"
H A Dtest66934 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -H 'Content-type: multipart/form-data; charset=utf-8' …
50 Content-Type: multipart/form-data; charset=utf-8; boundary=----------------------------
53 Content-Disposition: form-data; name="name"
57 Content-Disposition: form-data; name="tool"
H A Dtest67236 form-api
47 Request pause from form read callback: multi
66 Content-Type: multipart/form-data; boundary=----------------------------
69 Content-Disposition: form-data; name="field"
H A Dtest67336 form-api
47 Request pause from form read callback: easy
66 Content-Type: multipart/form-data; boundary=----------------------------
69 Content-Disposition: form-data; name="field"
H A Dtest113346 ^(Content-Type: multipart/form-data;|Content-Type: multipart/mixed; boundary=|-------).*
54 Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32
57 Content-Disposition: form-data; name="file"; filename="faker,and;.txt"
66 Content-Disposition: form-data; name="file2"; filename="test%TESTNUMBER,and;.txt"
75 Content-Disposition: form-data; name="file3"
95 Content-Disposition: form-data; name="a"
98 Content-Disposition: form-data; name="b"; filename="param_b"
H A Dtest207337 HTTP form posts with handle reset
48 ^(Content-Type: multipart/form-data;|------------).*
57 Content-Disposition: form-data; name="name"; filename="a.pdf"
67 Content-Disposition: form-data; name="name"; filename="b.jpg"
H A Dtest153351 Content-Type: application/x-www-form-urlencoded
57 Content-Type: application/x-www-form-urlencoded
63 Content-Type: application/x-www-form-urlencoded
69 Content-Type: application/x-www-form-urlencoded
/curl/docs/libcurl/opts/
H A DCURLOPT_MIME_OPTIONS.md32 Boolean flag used while encoding a MIME tree or multipart form data.
38 Tells libcurl to escape multipart form field and filenames using the
52 containing multipart form is sent, this is normally transmitted as
68 curl_mime *form = NULL;
74 form = curl_mime_init(curl);
75 if(form) {
76 curl_mimepart *part = curl_mime_addpart(form);
81 curl_easy_setopt(curl, CURLOPT_MIMEPOST, form);
89 curl_mime_free(form);

Completed in 25 milliseconds

1234567