Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
80a0b81c
Commit
80a0b81c
authored
18 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Make this code use the proper pointers
parent
06a7b056
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/examples/multi-post.c
+4
-4
4 additions, 4 deletions
docs/examples/multi-post.c
with
4 additions
and
4 deletions
docs/examples/multi-post.c
+
4
−
4
View file @
80a0b81c
...
...
@@ -24,12 +24,13 @@ int main(int argc, char *argv[])
CURLM
*
multi_handle
;
int
still_running
;
struct
H
ttp
P
ost
*
formpost
=
NULL
;
struct
H
ttp
P
ost
*
lastptr
=
NULL
;
struct
curl_h
ttp
p
ost
*
formpost
=
NULL
;
struct
curl_h
ttp
p
ost
*
lastptr
=
NULL
;
struct
curl_slist
*
headerlist
=
NULL
;
char
buf
[]
=
"Expect:"
;
/* Fill in the file upload field */
/* Fill in the file upload field. This makes libcurl load data from
the given file name when curl_easy_perform() is called. */
curl_formadd
(
&
formpost
,
&
lastptr
,
CURLFORM_COPYNAME
,
"sendfile"
,
...
...
@@ -43,7 +44,6 @@ int main(int argc, char *argv[])
CURLFORM_COPYCONTENTS
,
"postit2.c"
,
CURLFORM_END
);
/* Fill in the submit field too, even if this is rarely needed */
curl_formadd
(
&
formpost
,
&
lastptr
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment