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.22 2008/06/28 16:36:57 nilsson Exp $ + // $Id: Session.pike,v 1.23 2009/10/30 18:51:24 mast 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: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||([]))+ -  (["content-type":"application/x-www-form-urlencoded"]); +  (["content-type":"application/x-www-form-urlencoded"])+ +  (extra_headers||([]));       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,@   //! function callback_headers_ok,@