pike.git / lib / modules / Protocols.pmod / HTTP.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:174:    mapping(string:string|array(string)) proxy_headers;       if( user || password )    {    if( !request_headers )    proxy_headers = ([]);    else    proxy_headers = request_headers + ([]);       proxy_headers["Proxy-Authorization"] = "Basic " -  + MIME.encode_base64((user || "") + ":" + (password || "")); +  + MIME.encode_base64((user || "") + ":" + (password || ""), 1);    }       if (url->scheme == "http") {    if( query_variables )    url->set_query_variables( url->get_query_variables() +    query_variables );    string web_url = (string)url;       // Note: url object is wrecked here    url->scheme = proxy->scheme;
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:283:       mapping default_headers = ([    "user-agent" : "Mozilla/5.0 (compatible; MSIE 6.0; Pike HTTP client)"    " Pike/" + __REAL_MAJOR__ + "." + __REAL_MINOR__ + "." + __REAL_BUILD__,    "host" : url->host +    (url->port!=(url->scheme=="https"?443:80)?":"+url->port:"")]);       if(url->user || url->password)    default_headers->authorization = "Basic "    + MIME.encode_base64(url->user + ":" + -  (url->password || "")); +  (url->password || ""), +  1);       if(!request_headers)    request_headers = default_headers;    else    request_headers = default_headers |    mkmapping(lower_case(indices(request_headers)[*]),    values(request_headers));       string query=url->query;    if(query_variables && sizeof(query_variables))
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:420:    request_headers = ([]);    mapping default_headers = ([    "user-agent" : "Mozilla/5.0 (compatible; MSIE 6.0; Pike HTTP client)"    " Pike/" + __REAL_MAJOR__ + "." + __REAL_MINOR__ + "." + __REAL_BUILD__,    "host" : url->host +    (url->port!=(url->scheme=="https"?443:80)?":"+url->port:"")]);       if(url->user || url->password)    default_headers->authorization = "Basic "    + MIME.encode_base64(url->user + ":" + -  (url->password || "")); +  (url->password || ""), +  1);    request_headers = default_headers | request_headers;       string query=url->query;    if(query_variables && sizeof(query_variables))    {    if(query)    query+="&"+http_encode_query(query_variables);    else    query=http_encode_query(query_variables);    }
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:544:    mapping(string:string|array(string)) proxy_headers;       if( user || password )    {    if( !request_headers )    proxy_headers = ([]);    else    proxy_headers = request_headers + ([]);       proxy_headers["Proxy-Authorization"] = "Basic " -  + MIME.encode_base64((user || "") + ":" + (password || "")); +  + MIME.encode_base64((user || "") + ":" + (password || ""), 1);    }       if (url->scheme == "http") {    if( query_variables )    url->set_query_variables( url->get_query_variables() +    query_variables );    string web_url = (string)url;       // Note: url object is wrecked here    url->scheme = proxy->scheme;