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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:1:   #pike __REAL_VERSION__    - // $Id: Session.pike,v 1.16 2004/06/08 15:07:13 vida Exp $ + // $Id: Session.pike,v 1.17 2007/11/15 02:24:01 srb Exp $      import Protocols.HTTP;      typedef string|Standards.URI|SessionURL URL;      //! The number of redirects to follow, if any.   //! This is the default to the created Request objects.   //!   //! A redirect automatically turns into a GET request,   //! and all header, query, post or put information is dropped.
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:52:      //! Cookie callback. When a request is performed,   //! the result is checked for cookie changes and   //! additions. If a cookie is encountered, this   //! function is called. Default is to call   //! @[set_http_cookie] in the @[Session] object.    function(string,Standards.URI:mixed) cookie_encountered=set_http_cookie;      // ----------------    -  int(0..1) con_https; // internal flag -  +    //! Prepares the HTTP Query object for the connection,   //! and returns the parameters to use with @[do_sync],   //! @[do_async] or @[do_thread].   //!   //! This method will also use cookie information from the   //! parent @[Session], and may reuse connections (keep-alive).    array(string|int|mapping) prepare_method(    string method,    URL url,    void|mapping query_variables,
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:77:    if(stringp(url))    url=Standards.URI(url);    url_requested=url;      #if constant(SSL.sslfile)    if(url->scheme!="http" && url->scheme!="https")    error("Protocols.HTTP can't handle %O or any other "    "protocols than HTTP or HTTPS\n",    url->scheme);    -  con_https= (url->scheme=="https")? 1 : 0; +  if(!con) con=give_me_connection(url_requested); +  con->https= (url->scheme=="https")? 1 : 0;   #else    if(url->scheme!="http" )    error("Protocols.HTTP can't handle %O or any other "    "protocol than HTTP\n",    url->scheme);   #endif    mapping request_headers = copy_value(default_headers);    if (url->referer)    request_headers->referer=(string)url->referer;