Home | History | Annotate | Download | only in cups

Lines Matching refs:http

11  * missing or damaged, see the license at "http://www.cups.org/".
41 static http_status_t get_cupsd_conf(http_t *http, _cups_globals_t *cg,
61 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */
103 if (!http)
104 http = _cupsConnect();
106 if (!http || !dest || !buffer || bufsize < 2)
113 if ((src = cupsGetPPD2(http, dest)) == NULL)
135 response = cupsDoRequest(http, request, "/");
839 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */
858 if (!http)
864 if (cg->http)
872 if (strcmp(cg->http->hostname, cg->server) ||
873 cg->ipp_port != httpAddrPort(cg->http->hostaddr) ||
874 (cg->http->encryption != cg->encryption &&
875 cg->http->encryption == HTTP_ENCRYPTION_NEVER))
881 httpClose(cg->http);
882 cg->http = NULL;
890 if (!cg->http)
892 if ((cg->http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC,
911 http = cg->http;
914 if (!http || !num_settings || !settings)
934 if ((status = get_cupsd_conf(http, cg, cg->cupsd_update, cupsdconf,
973 httpGetHostname(http, cg->cupsd_hostname, sizeof(cg->cupsd_hostname));
1155 http_t *http, /* I - Connection to server or @code CUPS_HTTP_DEFAULT@ */
1209 if (!http)
1210 http = _cupsConnect();
1212 if (!http || !num_settings || !settings)
1223 if (get_cupsd_conf(http, cg, 0, cupsdconf, sizeof(cupsdconf),
1239 if (!cupsAdminGetServerSettings(http, &cupsd_num_settings,
1998 status = cupsPutFile(http, "/admin/conf/cupsd.conf", tempfile);
2061 httpGetHostname(http, cg->cupsd_hostname, sizeof(cg->cupsd_hostname));
2167 http_t *http, /* I - Connection to server */
2186 httpGetHostname(http, host, sizeof(host));
2198 * Read the local file rather than using HTTP...
2224 * Read cupsd.conf via a HTTP GET request...
2240 httpClearFields(http);
2243 httpSetField(http, HTTP_FIELD_IF_MODIFIED_SINCE,
2246 status = cupsGetFd(http, "/admin/conf/cupsd.conf", fd);