Lines Matching defs:purl
680 _http_connect(struct url *URL, struct url *purl, const char *flags)
700 if (purl && strcasecmp(URL->scheme, SCHEME_HTTPS) != 0) {
701 URL = purl;
735 struct url *purl;
741 *p && (purl = fetchParseURL(p))) {
742 if (!*purl->scheme)
743 strcpy(purl->scheme, SCHEME_HTTP);
744 if (!purl->port)
745 purl->port = _fetch_default_proxy_port(purl->scheme);
746 if (strcasecmp(purl->scheme, SCHEME_HTTP) == 0)
747 return (purl);
748 fetchFreeURL(purl);
804 struct url *purl, const char *flags)
821 if (direct && purl) {
822 fetchFreeURL(purl);
823 purl = NULL;
849 if (purl == NULL && strcmp(url->scheme, SCHEME_FTP) == 0) {
851 return (_ftp_request(url, "RETR", us, purl, flags));
853 return (_ftp_request(url, "STAT", us, purl, flags));
857 if ((conn = _http_connect(url, purl, flags)) == NULL)
880 if (purl) {
892 if (purl) {
893 if (*purl->user || *purl->pwd)
895 purl->user, purl->pwd);
1152 if (purl)
1153 fetchFreeURL(purl);
1166 if (purl)
1167 fetchFreeURL(purl);