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.23 2009/10/30 18:51:24 mast Exp $ + // $Id: Session.pike,v 1.24 2009/11/14 12:26:04 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: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||([]))+ -  (["content-type":"application/x-www-form-urlencoded"]); +  (["content-type":"application/x-www-form-urlencoded"])+ +  (extra_headers||([]));       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)   //! @decl Request post_url(URL url, @