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.15 2004/03/28 17:36:24 nilsson Exp $ + // $Id: Session.pike,v 1.16 2004/06/08 15:07:13 vida 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:747:   // ================================================================      Request do_method_url(string method,    string url,    void|mapping query_variables,    void|string data,    void|mapping extra_headers)   {    if (method=="POST")    extra_headers= -  (extra_headers||([]))| +  (extra_headers||([]))||    (["content-type":"application/x-www-form-urlencoded"]);       Request p=Request();    p->do_sync(p->prepare_method(method,url,query_variables,    extra_headers,data));    return p->ok() && p;   }      //! @decl Request get_url(URL url, @   //! void|mapping query_variables)
pike.git/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:867:       Request p=Request();       p->set_callbacks(callback_headers_ok,    callback_data_ok,    callback_fail,    p,@callback_arguments);       if (method=="POST")    extra_headers= -  (extra_headers||([]))| +  (extra_headers||([]))||    (["content-type":"application/x-www-form-urlencoded"]);       p->do_async(p->prepare_method(method,url,query_variables,    extra_headers,data));    return p;   }         //! @decl Request async_get_url(URL url,@   //! void|mapping query_variables,@