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.20 2007/11/25 19:17:00 srb Exp $ + // $Id: Session.pike,v 1.21 2007/11/25 19:17:52 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:103:    (time_to_keep_unused_connections<=0)?"Close":"Keep-Alive";       request_headers->host=url->host;       if (extra_headers)    request_headers|=extra_headers;       array v=get_cookies(url_requested);    if (v && sizeof(v))    if (request_headers->cookie) -  if (!arrayp(request_headers->cookie)) -  request_headers->cookie= -  ({request_headers->cookie})+v; +  request_headers->cookie+="; "+v*"; ";    else -  request_headers->cookie= -  request_headers->cookie+v; -  else -  request_headers->cookie=v; +  request_headers->cookie=v*"; ";       string query=url->query;    if(query_variables && sizeof(query_variables))    {    if(query)    query+="&"+http_encode_query(query_variables);    else    query=http_encode_query(query_variables);    }