Lines Matching refs:purl
1378 http_connect(struct url *URL, struct url *purl, const char *flags)
1403 curl = (purl != NULL) ? purl : URL;
1409 if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && purl) {
1461 struct url *purl;
1469 *p && (purl = fetchParseURL(p))) {
1470 if (!*purl->scheme)
1471 strcpy(purl->scheme, SCHEME_HTTP);
1472 if (!purl->port)
1473 purl->port = fetch_default_proxy_port(purl->scheme);
1474 if (strcasecmp(purl->scheme, SCHEME_HTTP) == 0)
1475 return (purl);
1476 fetchFreeURL(purl);
1526 struct url *purl, const char *flags)
1529 return (http_request_body(URL, op, us, purl, flags, NULL, NULL));
1540 struct url *purl, const char *flags, const char *content_type,
1570 if (direct && purl) {
1571 fetchFreeURL(purl);
1572 purl = NULL;
1596 if (purl == NULL && strcmp(url->scheme, SCHEME_FTP) == 0) {
1598 return (ftp_request(url, "RETR", us, purl, flags));
1600 return (ftp_request(url, "STAT", us, purl, flags));
1604 if ((conn = http_connect(url, purl, flags)) == NULL)
1618 if (purl && strcasecmp(URL->scheme, SCHEME_HTTPS) != 0) {
1642 if (purl && proxy_challenges.valid) {
1645 if (*purl->user || *purl->pwd) {
1646 aparams.user = strdup(purl->user);
1647 aparams.password = strdup(purl->pwd);
1654 } else if (fetch_netrc_auth(purl) == 0) {
1655 aparams.user = strdup(purl->user);
1656 aparams.password = strdup(purl->pwd);
2010 if (purl)
2011 fetchFreeURL(purl);
2026 if (purl)
2027 fetchFreeURL(purl);