Lines Matching refs:set

203   for(head = (conn->bits.proxy && data->set.sep_headers) ?
204 data->set.proxyheaders : data->set.headers;
344 data->set.str[STRING_BEARER]);
557 * which one (if any) to use. It will set 'newurl' if an auth method was
569 if(!data->set.str[STRING_BEARER])
577 return data->set.http_fail_on_error?CURLE_HTTP_RETURNED_ERROR:CURLE_OK;
579 if((data->state.aptr.user || data->set.str[STRING_BEARER]) &&
728 /* NOTE: this function should set 'done' TRUE, as the other auth
736 if((!proxy && data->set.str[STRING_BEARER] &&
744 /* NOTE: this function should set 'done' TRUE, as the other auth
775 * method. data->state.authdone is set to TRUE when authentication is
813 data->set.str[STRING_BEARER])
823 so far by a server round-trip. Then we set the picked one to the
829 far by a proxy round-trip. Then we set the picked one to the want one,
953 * ->picked is first set to the 'want' value (one or more bits) before the
954 * request is sent, and then it is again set _after_ all response 401/407
1119 if(!data->set.http_fail_on_error)
1200 if(data->set.max_send_speed &&
1201 (data->set.max_send_speed < (curl_off_t)fullsize) &&
1202 (data->set.max_send_speed < http->postsize))
1204 fullsize = (size_t)data->set.max_send_speed;
1280 if(data->set.max_send_speed &&
1281 (included_body_bytes > data->set.max_send_speed)) {
1282 curl_off_t overflow = included_body_bytes - data->set.max_send_speed;
1306 if(sendsize > (size_t)data->set.upload_buffer_size)
1307 sendsize = (size_t)data->set.upload_buffer_size;
1331 if(data->set.max_send_speed &&
1332 (included_body_bytes > data->set.max_send_speed)) {
1333 curl_off_t overflow = included_body_bytes - data->set.max_send_speed;
1354 if(http && (sendsize > (size_t)data->set.upload_buffer_size))
1355 sendsize = (size_t)data->set.upload_buffer_size;
1362 * Note that we may not send the entire chunk at once, and we have a set
1397 /* backup the currently set pointers */
1404 /* set the new pointers for the request-sending */
1510 /* We default to persistent connections. We set this already in this connect
1542 * a chance to be set back to true when we output the next auth header */
1546 /* set the proper values (possibly modified on POST) */
1547 conn->seek_func = data->set.seek_func; /* restore */
1548 conn->seek_client = data->set.seek_client; /* restore */
1564 !data->set.connect_only &&
1664 (handle->set.crlf)) {
1724 h[0] = data->set.headers;
1727 h[0] = data->set.headers;
1728 if(data->set.sep_headers) {
1729 h[1] = data->set.proxyheaders;
1734 if(data->set.sep_headers)
1735 h[0] = data->set.proxyheaders;
1737 h[0] = data->set.headers;
1742 h[0] = data->set.headers;
1871 h[0] = data->set.headers;
1874 h[0] = data->set.headers;
1875 if(data->set.sep_headers) {
1876 h[1] = data->set.proxyheaders;
1881 if(data->set.sep_headers)
1882 h[0] = data->set.proxyheaders;
1884 h[0] = data->set.headers;
1889 h[0] = data->set.headers;
2013 if(data->set.timecondition == CURL_TIMECOND_NONE)
2017 result = Curl_gmtime(data->set.timevalue, &keeptime);
2024 switch(data->set.timecondition) {
2048 /* The If-Modified-Since header family should have their times set in
2095 /* Now set the 'request' pointer to the proper request string */
2096 if(data->set.str[STRING_CUSTOMREQUEST])
2097 request = data->set.str[STRING_CUSTOMREQUEST];
2237 if(data->set.str[STRING_TARGET]) {
2238 path = data->set.str[STRING_TARGET];
2293 result = Curl_dyn_add(r, data->set.str[STRING_TARGET]?
2294 data->set.str[STRING_TARGET]:url);
2300 if(data->set.proxy_transfer_mode) {
2348 data->state.mimepost = &data->set.mimepost;
2359 result = Curl_getformdata(data, data->state.formp, data->set.httppost,
2380 /* Prepare the mime structure headers & set content type. */
2388 curl_mime_headers(data->state.mimepost, data->set.headers, 0);
2446 sure that the expect100header is always set to the preferred value
2500 /* set the upload size to the progress meter */
2539 /* We only set Content-Length and allow a custom Content-Length if
2540 we don't upload data chunked, as RFC2616 forbids us to set both
2545 although it isn't very wise to actually set your own */
2575 /* set the upload size to the progress meter */
2607 /* We only set Content-Length and allow a custom Content-Length if
2608 we don't upload data chunked, as RFC2616 forbids us to set both
2614 although it isn't very wise to actually set your own */
2634 if(data->set.postfields) {
2641 is no magic limit but only set to prevent really huge POSTs to
2652 result = Curl_dyn_addn(r, data->set.postfields,
2664 result = Curl_dyn_addn(r, data->set.postfields,
2684 http->postdata = data->set.postfields;
2690 /* set the upload size to the progress meter */
2717 /* set the upload size to the progress meter */
2720 /* set the pointer to mark that we will send the post body using the
2751 !(data->set.connect_only))
2752 /* Set up the transfer for two-way since without CONNECT_ONLY set, this
2773 if(data->set.str[STRING_COOKIE] &&
2775 addcookies = data->set.str[STRING_COOKIE];
2864 if(data->set.set_resume_from < 0) {
2906 * got a resume_from value set. The resume value has already created
2988 /* Abort after the headers if "follow Location" is set
2989 and we're set to close anyway. */
3022 if(data->set.timecondition && !data->state.range) {
3023 /* A time condition has been set AND no ranges have been requested. This
3047 data->set.http_transfer_encoding) {
3167 data->set.str[STRING_ENCODING]) {
3170 aprintf("Accept-Encoding: %s\r\n", data->set.str[STRING_ENCODING]);
3251 (data->set.str[STRING_USERAGENT] &&
3252 *data->set.str[STRING_USERAGENT] &&
3257 (data->set.str[STRING_ENCODING] &&
3258 *data->set.str[STRING_ENCODING] &&
3354 /* upload_chunky was set above to set up the request in a chunky fashion,
3389 struct curl_slist *head = data->set.http200aliases;
3446 !data->set.ignorecl && checkprefix("Content-Length:", headp)) {
3457 if(data->set.max_filesize) {
3496 infof(data, "HTTP/1.0 proxy connection set to keep alive");
3508 infof(data, "HTTP/1.1 proxy connection set close");
3522 infof(data, "HTTP/1.0 connection set to keep alive");
3543 * of chunks, and a chunk-data set to zero signals the
3551 if(!k->chunk && data->set.http_transfer_encoding) {
3559 data->set.str[STRING_ENCODING]) {
3619 /* If there is a custom-set Host: name, use it here, or else use real peer
3638 (data->set.timecondition || data->set.get_filetime) ) {
3640 if(data->set.get_filetime)
3690 if(data->set.http_follow_location) {
3821 if(data->set.timecondition)
3852 if(data->set.max_filesize &&
3853 k->size > data->set.max_filesize) {
3961 if(!data->set.http09_allowed) {
3994 if(!data->set.http09_allowed) {
4060 if(data->set.connect_only)
4077 we'll get another set of headers */
4184 * use. It will set 'newurl' if an auth method was picked. */
4237 else if(data->set.http_keep_sending_on_error) {
4410 /* If user has set option HTTP200ALIASES,
4857 infof(data, "set pseudo header %s to %s", HTTP_PSEUDO_SCHEME, scheme);