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.5 2003/03/04 17:01:57 mirar Exp $ + // $Id: Session.pike,v 1.6 2003/03/12 09:58:18 agehall 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:383:      // ----------------       string _sprintf(int t)    {    if (t=='O')    return sprintf("Request(%O",(string)url_requested)+    (!con?" - no connection"    :((con->con?" - connected":"")+    (!con->ok?" - failed" -  :" - "+(sizeof(con->buf)+" bytes recieved"))))+ +  :" - "+(sizeof(con->buf)+" bytes received"))))+    ")";    }   }      // ================================================================   // Cookies      multiset(Cookie) all_cookies=(<>);   mapping(string:mapping(string:Cookie)) cookie_lookup=([]);   
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:465:    !stringp(key) ||    !stringp(data) ||    !stringp(path) ||    !intp(expires))    error("Cookie.decode: parse error\n");    return this_object();    }   }       - //! Parse and set a cookie recieved in the HTTP protocol. + //! Parse and set a cookie received in the HTTP protocol.   //! The cookie will be checked against current security levels et al.      void set_http_cookie(string cookie,Standards.URI at)   {    object c=Cookie();    c->from_http(cookie,at);    set_cookie(c,at);   }      //! Set a cookie.
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:954:   //! the created Request object as first argument, then   //! the given @[callback_arguments], if any.   //!   //! @[callback_headers_ok] is called when the HTTP request has received   //! headers.   //!   //! @[callback_data_ok] is called when the HTTP request has been   //! received completely, data and all.   //!   //! @[callback_fail] is called when the HTTP request has failed, - //! on a TCP/IP or DNS level, or has recieved a forced timeout. + //! on a TCP/IP or DNS level, or has received a forced timeout.   //!   //! The created Request object is returned.      Request async_get_url(URL url,    void|mapping query_variables,    function callback_headers_ok,    function callback_data_ok,    function callback_fail,    mixed ...callback_arguments)   {