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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/module.pmod:26:    if(url->scheme!="http" )    error("Protocols.HTTP can't handle %O or any other protocol than HTTP\n",    url->scheme);      #endif          if(!request_headers)    request_headers = ([]);    mapping default_headers = ([ -  "user-agent" : "Mozilla/4.0 compatible (Pike HTTP client)", +  "user-agent" : "Mozilla/5.0 (compatible; Pike HTTP client)",    "host" : url->host ]);       if(url->user || url->passwd)    default_headers->authorization = "Basic "    + MIME.encode_base64(url->user + ":" +    (url->password || ""));    request_headers = default_headers | request_headers;       string query=url->query;    if(query_variables && sizeof(query_variables))