Searched refs:http (Results 1 - 25 of 922) sorted by relevance

1234567891011>>

/macosx-10.10.1/cups-408/cups/cups/
H A Dhttp.c2 * "$Id: http.c 12131 2014-08-28 23:38:16Z msweet $"
16 * file is missing or damaged, see the license at "http://www.cups.org/".
45 static void http_content_coding_finish(http_t *http);
46 static void http_content_coding_start(http_t *http,
57 static ssize_t http_read(http_t *http, char *buffer, size_t length);
58 static ssize_t http_read_buffered(http_t *http, char *buffer, size_t length);
59 static ssize_t http_read_chunk(http_t *http, char *buffer, size_t length);
60 static int http_send(http_t *http, http_state_t request,
62 static ssize_t http_write(http_t *http, const char *buffer,
64 static ssize_t http_write_chunk(http_t *http, cons
126 http_t *http; /* HTTP connection */ local
243 httpBlocking(http_t *http, int b) argument
259 httpCheck(http_t *http) argument
272 httpClearCookie(http_t *http) argument
290 httpClearFields(http_t *http) argument
340 httpClose(http_t *http) argument
451 http_t *http; /* New HTTP connection */ local
511 httpDelete(http_t *http, const char *uri) argument
523 _httpDisconnect(http_t *http) argument
541 httpEncryption(http_t *http, http_encryption_t e) argument
587 httpError(http_t *http) argument
620 httpFlush(http_t *http) argument
693 httpFlushWrite(http_t *http) argument
750 httpGet(http_t *http, const char *uri) argument
766 httpGetActivity(http_t *http) argument
784 httpGetAuthString(http_t *http) argument
800 httpGetBlocking(http_t *http) argument
821 httpGetContentEncoding(http_t *http) argument
901 httpGetCookie(http_t *http) argument
918 httpGetEncryption(http_t *http) argument
934 httpGetExpect(http_t *http) argument
950 httpGetFd(http_t *http) argument
961 httpGetField(http_t *http, http_field_t field) argument
1002 httpGetKeepAlive(http_t *http) argument
1019 httpGetLength(http_t *http) argument
1047 httpGetLength2(http_t *http) argument
1111 httpGetPending(http_t *http) argument
1124 httpGetReady(http_t *http) argument
1150 httpGetRemaining(http_t *http) argument
1161 httpGets(char *line, int length, http_t *http) argument
1334 httpGetState(http_t *http) argument
1347 httpGetStatus(http_t *http) argument
1360 httpGetSubField(http_t *http, http_field_t field, const char *name, char *value) argument
1376 httpGetSubField2(http_t *http, http_field_t field, const char *name, char *value, int valuelen) argument
1506 httpGetVersion(http_t *http) argument
1517 httpHead(http_t *http, const char *uri) argument
1589 httpIsChunked(http_t *http) argument
1604 httpIsEncrypted(http_t *http) argument
1615 httpOptions(http_t *http, const char *uri) argument
1635 httpPeek(http_t *http, char *buffer, size_t length) argument
1884 httpPost(http_t *http, const char *uri) argument
1898 httpPrintf(http_t *http, const char *format, ...) argument
1937 httpPut(http_t *http, const char *uri) argument
1955 httpRead(http_t *http, char *buffer, int length) argument
1970 httpRead2(http_t *http, char *buffer, size_t length) argument
2184 httpReadRequest(http_t *http, char *uri, size_t urilen) argument
2350 httpReconnect(http_t *http) argument
2364 httpReconnect2(http_t *http, int msec, int *cancel) argument
2497 httpSetAuthString(http_t *http, const char *scheme, const char *data) argument
2554 httpSetCredentials(http_t *http, cups_array_t *credentials) argument
2577 httpSetCookie(http_t *http, const char *cookie) argument
2603 httpSetDefaultField(http_t *http, http_field_t field, const char *value) argument
2653 httpSetExpect(http_t *http, http_status_t expect) argument
2669 httpSetField(http_t *http, http_field_t field, const char *value) argument
2778 httpSetKeepAlive( http_t *http, http_keepalive_t keep_alive) argument
2794 httpSetLength(http_t *http, size_t length) argument
2828 httpSetTimeout( http_t *http, double timeout, http_timeout_cb_t cb, void *user_data) argument
2856 httpShutdown(http_t *http) argument
2879 httpTrace(http_t *http, const char *uri) argument
2894 _httpUpdate(http_t *http, http_status_t *status) argument
3068 httpUpdate(http_t *http) argument
3132 _httpWait(http_t *http, int msec, int usessl) argument
3221 httpWait(http_t *http, int msec) argument
3277 httpWrite(http_t *http, const char *buffer, int length) argument
3292 httpWrite2(http_t *http, const char *buffer, size_t length) argument
3484 httpWriteResponse(http_t *http, http_status_t status) argument
3693 http_content_coding_finish( http_t *http) argument
3760 http_content_coding_start( http_t *http, const char *value) argument
3906 http_t *http; /* New HTTP connection */ local
4048 http_read(http_t *http, char *buffer, size_t length) argument
4162 http_read_buffered(http_t *http, char *buffer, size_t length) argument
4204 http_read_chunk(http_t *http, char *buffer, size_t length) argument
4270 http_send(http_t *http, http_state_t request, const char *uri) argument
4457 http_set_length(http_t *http) argument
4536 http_set_wait(http_t *http) argument
4556 http_tls_upgrade(http_t *http) argument
4642 http_write(http_t *http, const char *buffer, size_t length) argument
4790 http_write_chunk(http_t *http, const char *buffer, size_t length) argument
[all...]
H A Dgetputfile.c13 * file is missing or damaged, see the license at "http://www.cups.org/".
41 cupsGetFd(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ argument
56 DEBUG_printf(("cupsGetFd(http=%p, resource=\"%s\", fd=%d)", http,
61 if (http)
62 http->error = EINVAL;
67 if (!http)
68 if ((http = _cupsConnect()) == NULL)
75 strlcpy(if_modified_since, httpGetField(http, HTTP_FIELD_IF_MODIFIED_SINCE),
80 if (!_cups_strcasecmp(httpGetField(http, HTTP_FIELD_CONNECTIO
197 cupsGetFile(http_t *http, const char *resource, const char *filename) argument
265 cupsPutFd(http_t *http, const char *resource, int fd) argument
466 cupsPutFile(http_t *http, const char *resource, const char *filename) argument
[all...]
H A Drequest.c13 * file is missing or damaged, see the license at "http://www.cups.org/".
47 cupsDoFileRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ argument
56 DEBUG_printf(("cupsDoFileRequest(http=%p, request=%p(%s), resource=\"%s\", "
57 "filename=\"%s\")", http, request,
80 response = cupsDoIORequest(http, request, resource, infile, -1);
106 cupsDoIORequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */ argument
120 DEBUG_printf(("cupsDoIORequest(http=%p, request=%p(%s), resource=\"%s\", "
121 "infile=%d, outfile=%d)", http, request,
142 if (!http)
143 if ((http
303 cupsDoRequest(http_t *http, ipp_t *request, const char *resource) argument
328 cupsGetResponse(http_t *http, const char *resource) argument
551 cupsReadResponseData( http_t *http, char *buffer, size_t length) argument
602 cupsSendRequest(http_t *http, ipp_t *request, const char *resource, size_t length) argument
911 cupsWriteRequestData( http_t *http, const char *buffer, size_t length) argument
[all...]
H A Dauth.c16 * file is missing or damaged, see the license at "http://www.cups.org/".
90 static gss_name_t cups_gss_getname(http_t *http, const char *service_name);
98 static int cups_local_auth(http_t *http);
112 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */
125 DEBUG_printf(("cupsDoAuthentication(http=%p, method=\"%s\", resource=\"%s\")",
126 http, method, resource));
128 if (!http)
129 http = _cupsConnect();
131 if (!http || !method || !resource)
135 http
111 cupsDoAuthentication( http_t *http, const char *method, const char *resource) argument
294 _cupsSetNegotiateAuthString( http_t *http, const char *method, const char *resource) argument
510 cups_gss_getname( http_t *http, const char *service_name) argument
646 cups_local_auth(http_t *http) argument
[all...]
H A Dadminutil.h13 * file is missing or damaged, see the license at "http://www.cups.org/".
59 extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest,
63 extern int cupsAdminGetServerSettings(http_t *http,
67 extern int cupsAdminSetServerSettings(http_t *http,
H A Dtestdest.c12 * file is missing or damaged, see the license at "http://www.cups.org/".
29 static void localize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value);
30 static void print_file(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, int num_options, cups_option_t *options);
31 static void show_conflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, cups_option_t *options);
32 static void show_default(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option);
33 static void show_media(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, const char *name);
34 static void show_supported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value);
46 http_t *http; /* Connection to destination */ local
69 if ((http = cupsConnectDest(dest, CUPS_DEST_FLAGS_NONE, 30000, NULL, NULL, 0, NULL, NULL)) == NULL)
75 if ((dinfo = cupsCopyDestInfo(http, des
157 localize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value) argument
176 print_file(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, int num_options, cups_option_t *options) argument
197 show_conflicts( http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, cups_option_t *options) argument
217 show_default(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option) argument
234 show_media(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, const char *name) argument
310 show_supported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value) argument
[all...]
H A Dgetdevices.c12 * file is missing or damaged, see the license at "http://www.cups.org/".
42 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */
68 DEBUG_printf(("cupsGetDevices(http=%p, timeout=%d, include_schemes=\"%s\", "
69 "exclude_schemes=\"%s\", callback=%p, user_data=%p)", http,
76 if (!http)
77 http = _cupsConnect();
79 if (!http)
115 status = cupsSendRequest(http, request, "/", ippLength(request));
119 status = httpUpdate(http);
123 httpFlush(http);
41 cupsGetDevices( http_t *http, int timeout, const char *include_schemes, const char *exclude_schemes, cups_device_cb_t callback, void *user_data) argument
[all...]
H A Dhttp.h2 * "$Id: http.h 12104 2014-08-20 15:23:40Z msweet $"
13 * file is missing or damaged, see the license at "http://www.cups.org/".
446 typedef int (*http_timeout_cb_t)(http_t *http, void *user_data);
455 extern void httpBlocking(http_t *http, int b);
456 extern int httpCheck(http_t *http);
457 extern void httpClearFields(http_t *http);
458 extern void httpClose(http_t *http);
464 extern int httpDelete(http_t *http, const char *uri);
465 extern int httpEncryption(http_t *http, http_encryption_t e);
466 extern int httpError(http_t *http);
[all...]
H A Dtestadmin.c13 * file is missing or damaged, see the license at "http://www.cups.org/".
49 http_t *http; /* Connection to server */ local
56 http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC,
68 if (cupsAdminSetServerSettings(http, num_settings, settings))
86 if (cupsAdminGetServerSettings(http, &num_settings, &settings))
H A Dtls-darwin.c13 * file is missing or damaged, see the license at "http://www.cups.org/".
18 /**** This file is included from http.c ****/
57 static int http_cdsa_set_credentials(http_t *http);
357 http_t *http, /* I - Connection to server */
368 DEBUG_printf(("httpCopyCredentials(http=%p, credentials=%p)", http, credentials));
373 if (!http || !http->tls || !credentials)
376 if (!(error = SSLCopyPeerTrust(http->tls, &peerTrust)) && peerTrust)
914 _httpTLSPending(http_t *http) /* argument
356 httpCopyCredentials( http_t *http, cups_array_t **credentials) argument
931 _httpTLSRead(http_t *http, char *buf, int len) argument
980 _httpTLSStart(http_t *http) argument
1333 _httpTLSStop(http_t *http) argument
1353 _httpTLSWrite(http_t *http, const char *buf, int len) argument
1529 http_t *http; /* HTTP connection */ local
1586 http_cdsa_set_credentials(http_t *http) argument
1628 http_t *http; /* HTTP connection */ local
[all...]
/macosx-10.10.1/ruby-106/ruby/test/net/http/
H A Dtest_https.rb36 http = Net::HTTP.new("localhost", config("port"))
37 http.use_ssl = true
38 http.verify_callback = Proc.new do |preverify_ok, store_ctx|
41 http.request_get("/") {|res|
49 http = Net::HTTP.new("localhost", config("port"))
50 http.use_ssl = true
51 http.verify_callback = Proc.new do |preverify_ok, store_ctx|
55 http.request_post("/", data) {|res|
63 http = Net::HTTP.new("localhost", config("port"))
64 http
[all...]
H A Dtest_http.rb3 require 'net/http'
26 http = proxy_class.new 'example'
28 refute http.proxy_from_env?
38 ENV['http_proxy'] = 'http://proxy.example:8000'
56 http = proxy_class.new 'example'
58 assert http.proxy_from_env?
63 http = Net::HTTP.new 'example', nil, nil
65 edited = http.send :edit_path, '/path'
69 http.use_ssl = true
71 edited = http
[all...]
H A Dtest_https_proxy.rb20 http = proxy.new("foo.example.org", 8000)
21 http.use_ssl = true
22 http.verify_mode = OpenSSL::SSL::VERIFY_NONE
24 http.start
/macosx-10.10.1/tcl-105/tcl_ext/tklib/tklib/modules/diagrams/include/values/
H A Danchor.inc4 http://www.tcl.tk/man/tcl8.5/TkLib/GetAnchor.htm \
H A Dstyle.inc4 http://www.tcl.tk/man/tcl8.5/TkLib/GetDash.htm \
/macosx-10.10.1/Security-57031.1.35/Security/sec/securityd/
H A Dasynchttp.c10 * http://www.opensource.apple.com/apsl/ and read it before using this
25 * asynchttp.c - asynchronous http get/post engine.
158 static void asynchttp_complete(asynchttp_t *http) { argument
159 secdebug("http", "http: %p", http);
161 if (http->stream) {
162 CFReadStreamSetClient(http->stream, kCFStreamEventNone, NULL, NULL);
163 CFReadStreamSetDispatchQueue(http->stream, NULL);
164 CFReadStreamClose(http
194 asynchttp_t *http = (asynchttp_t *)info; local
316 asyncHttpPost(CFURLRef responder, CFDataRef requestData , asynchttp_t *http) argument
397 asynchttp_free(asynchttp_t *http) argument
408 asynchttp_request(CFHTTPMessageRef request, asynchttp_t *http) argument
[all...]
H A Dasynchttp.h10 * http://www.opensource.apple.com/apsl/ and read it before using this
27 an asynchronous http get/post engine.
44 void(*completed)(struct asynchttp_s *http, CFTimeInterval maxAge);
57 bool asyncHttpPost(CFURLRef cfUrl, CFDataRef postData, asynchttp_t *http);
59 /* Caller owns struct pointed to by http, but is responsible for calling
61 bool asynchttp_request(CFHTTPMessageRef request, asynchttp_t *http);
62 void asynchttp_free(asynchttp_t *http);
/macosx-10.10.1/cups-408/cups/cgi-bin/
H A Djobs.c13 * file is missing or damaged, see the license at "http://www.cups.org/".
27 static void do_job_op(http_t *http, int job_id, ipp_op_t op);
37 http_t *http; /* Connection to the server */ local
60 http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption());
82 do_job_op(http, job_id, IPP_CANCEL_JOB);
84 do_job_op(http, job_id, IPP_HOLD_JOB);
86 cgiMoveJobs(http, NULL, job_id);
88 do_job_op(http, job_id, IPP_RELEASE_JOB);
90 do_job_op(http, job_id, IPP_RESTART_JOB);
109 cgiShowJobs(http, NUL
132 do_job_op(http_t *http, int job_id, ipp_op_t op) argument
[all...]
H A Dclasses.c13 * file is missing or damaged, see the license at "http://www.cups.org/".
27 static void do_class_op(http_t *http, const char *printer, ipp_op_t op,
29 static void show_all_classes(http_t *http, const char *username);
30 static void show_class(http_t *http, const char *printer);
42 http_t *http; /* Connection to the server */ local
94 http = httpConnectEncrypt(cupsServer(), ippPort(), cupsEncryption());
112 if ((response = cupsDoRequest(http, request, "/")) != NULL)
136 show_all_classes(http, user);
138 show_class(http, pclass);
151 getenv("HTTPS") ? "https" : "http", NUL
211 do_class_op(http_t *http, const char *printer, ipp_op_t op, const char *title) argument
294 show_all_classes(http_t *http, const char *user) argument
454 show_class(http_t *http, const char *pclass) argument
[all...]
/macosx-10.10.1/ruby-106/ruby/sample/drb/
H A Dhttp0serv.rb10 unless /^http:/ =~ uri
11 raise(DRbBadScheme, uri) unless uri =~ /^http:/
/macosx-10.10.1/ruby-106/ruby/test/rubygems/
H A Dtest_bundled_ca.rb31 http = Net::HTTP.new(host, 443)
32 http.use_ssl = true
33 http.verify_mode = OpenSSL::SSL::VERIFY_PEER
34 http.cert_store = bundled_certificate_store
35 http.get('/')
/macosx-10.10.1/apache-793/httpd/modules/lua/test/
H A Dhelpers.lua4 local http = require("socket.http")
7 base_url = "http://localhost"
10 return http.request(base_url .. uri)
29 return http.request(base_url .. uri, flat)
H A Dtest.lua10 -- http://www.apache.org/licenses/LICENSE-2.0
19 local http = require "helpers"
21 http.base_url = "http://localhost:8008"
26 local b, c = http.get "/document_root.lua"
32 local b, c = http.get "/basic"
38 local b, c = http.get "/test_quietly"
44 local b, c = http.post "/basic" "hello=7&hello=1"
51 local b, c = http.post("/test_foo", "hello=7&hello=1")
57 local b, c = http
[all...]
/macosx-10.10.1/cups-408/cups/berkeley/
H A Dlpq.c13 * file is missing or damaged, see the license at "http://www.cups.org/".
43 http_t *http; /* Connection to server */ local
61 http = NULL;
80 if (http)
81 httpEncryption(http, HTTP_ENCRYPT_REQUIRED);
115 httpClose(http);
126 http = connect_server(argv[0], http);
128 if ((named_dest = cupsGetNamedDest(http, dest, instance)) == NULL)
154 if (http)
274 connect_server(const char *command, http_t *http) argument
298 show_jobs(const char *command, http_t *http, const char *dest, const char *user, const int id, const int longstatus) argument
560 show_printer(const char *command, http_t *http, const char *dest) argument
[all...]
/macosx-10.10.1/cups-408/cups/scheduler/
H A Dclient.c16 * file is missing or damaged, see the license at "http://www.cups.org/".
132 if ((con->http = httpAcceptConnection(lis->fd, 0)) == NULL)
157 if (httpAddrEqual(httpGetAddress(tempcon->http), httpGetAddress(con->http)))
173 httpGetHostname(con->http, name, sizeof(name)));
176 httpClose(con->http);
186 hostname = httpResolveHostname(con->http, NULL, 0);
188 hostname = httpGetHostname(con->http, NULL, 0);
196 httpClose(con->http);
200 httpGetHostname(con->http, NUL
[all...]

Completed in 402 milliseconds

1234567891011>>