mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
how to set more than one cookie
This commit is contained in:
parent
969a25d1b2
commit
bd9650bc81
@ -2,7 +2,7 @@
|
|||||||
.\" nroff -man [file]
|
.\" nroff -man [file]
|
||||||
.\" $Id$
|
.\" $Id$
|
||||||
.\"
|
.\"
|
||||||
.TH curl_easy_setopt 3 "22 Apr 2002" "libcurl 7.9.6" "libcurl Manual"
|
.TH curl_easy_setopt 3 "30 Apr 2002" "libcurl 7.9.6" "libcurl Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
curl_easy_setopt - Set curl easy-session options
|
curl_easy_setopt - Set curl easy-session options
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -293,6 +293,13 @@ want the transfer to start from.
|
|||||||
Pass a pointer to a zero terminated string as parameter. It will be used to
|
Pass a pointer to a zero terminated string as parameter. It will be used to
|
||||||
set a cookie in the http request. The format of the string should be
|
set a cookie in the http request. The format of the string should be
|
||||||
[NAME]=[CONTENTS]; Where NAME is the cookie name.
|
[NAME]=[CONTENTS]; Where NAME is the cookie name.
|
||||||
|
|
||||||
|
If you need to set mulitple cookies, you need to set them all using a single
|
||||||
|
option and thus you need to concat them all in one single string. Set multiple
|
||||||
|
cookies in one string like this: "name1=content1; name2=content2;" etc.
|
||||||
|
|
||||||
|
Using this option multiple times will only make the latest string override the
|
||||||
|
previously ones.
|
||||||
.TP
|
.TP
|
||||||
.B CURLOPT_HTTPHEADER
|
.B CURLOPT_HTTPHEADER
|
||||||
Pass a pointer to a linked list of HTTP headers to pass to the server in your
|
Pass a pointer to a linked list of HTTP headers to pass to the server in your
|
||||||
|
Loading…
Reference in New Issue
Block a user