Lines Matching refs:requests

298      * NOTE: do *NOT* dump out the content of 'requests' in the
302 private MessageHeader requests;
338 /* Indicates if the std. request headers have been set in requests. */
498 setPreemptiveProxyAuthentication(requests);
513 requests.prepend(method + " " + getRequestURI()+" " +
516 requests.setIfNotSet ("Cache-Control", "no-cache");
517 requests.setIfNotSet ("Pragma", "no-cache");
519 requests.setIfNotSet("User-Agent", userAgent);
525 requests.setIfNotSet("Host", host);
526 requests.setIfNotSet("Accept", acceptString);
538 requests.setIfNotSet("Proxy-Connection", "keep-alive");
540 requests.setIfNotSet("Connection", "keep-alive");
549 requests.setIfNotSet("Connection", "close");
560 requests.setIfNotSet("If-Modified-Since", fo.format(date));
566 requests.setIfNotSet(sauth.getHeaderName(), sauth.getHeaderValue(url,method));
571 requests.setIfNotSet ("Content-type",
579 requests.set ("Transfer-Encoding", "chunked");
583 requests.set ("Content-Length",
586 requests.set ("Content-Length",
595 requests.set("Content-Length",
601 if (requests.findValue("Transfer-Encoding") != null) {
602 requests.remove("Transfer-Encoding");
617 logger.fine(requests.toString());
619 http.writeRequests(requests, poster, streaming());
728 requests = new MessageHeader();
877 cachedResponse = cacheHandler.get(uri, getRequestMethod(), requests.getHeaders(EXCLUDE_HEADERS));
1094 String expects = requests.findValue("Expect");
1162 int k = requests.getKey("Cookie");
1164 userCookies = requests.getValue(k);
1165 k = requests.getKey("Cookie2");
1167 userCookies2 = requests.getValue(k);
1173 requests.remove("Cookie");
1174 requests.remove("Cookie2");
1183 uri, requests.getHeaders(EXCLUDE_HEADERS));
1205 requests.add(key, cookieValue.substring(0, cookieValue.length() - 2));
1215 if ((k = requests.getKey("Cookie")) != -1)
1216 requests.set("Cookie", requests.getValue(k) + ";" + userCookies);
1218 requests.set("Cookie", userCookies);
1222 if ((k = requests.getKey("Cookie2")) != -1)
1223 requests.set("Cookie2", requests.getValue(k) + ";" + userCookies2);
1225 requests.set("Cookie2", userCookies2);
1294 isUserServerAuth = requests.getKey("Authorization") != -1;
1295 isUserProxyAuth = requests.getKey("Proxy-Authorization") != -1;
1413 requests.remove("Proxy-Authorization");
1461 requests.set(serverAuthentication.getHeaderName(),
1544 requests.remove("Authorization");
1546 requests.remove("Proxy-Authorization");
1726 requests.set(proxyAuthentication.getHeaderName(), value);
1767 // save current requests so that they can be restored after tunnel is setup.
1768 MessageHeader savedRequests = requests;
1769 requests = new MessageHeader();
1884 requests = savedRequests;
1904 requests.set(0, HTTP_CONNECT + " " + connectRequestURI(url)
1906 requests.setIfNotSet("User-Agent", userAgent);
1912 requests.setIfNotSet("Host", host);
1915 requests.setIfNotSet("Accept", acceptString);
1918 requests.setIfNotSet("Proxy-Connection", "keep-alive");
1921 setPreemptiveProxyAuthentication(requests);
1925 logger.fine(requests.toString());
1928 http.writeRequests(requests, null);
1934 private void setPreemptiveProxyAuthentication(MessageHeader requests) throws IOException {
1953 requests.set(pauth.getHeaderName(), value);
2364 requests.set(0, method + " " + getRequestURI()+" " +
2390 requests = new MessageHeader();
2409 requests.set(0, method + " " + getRequestURI()+" " +
2416 requests.set("Host", host);
2754 requests.set(key, value);
2777 requests.add(key, value);
2787 requests.set(key, value);
2810 return requests.findValue(key);
2832 return requests.getHeaders(EXCLUDE_HEADERS);
2835 * The cookies in the requests message headers may have
2848 return requests.filterAndAddHeaders(EXCLUDE_HEADERS2, userCookiesMap);