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.12 2003/06/08 21:56:02 mirar Exp $ + // $Id: Session.pike,v 1.13 2003/10/22 19:18:24 jhs 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:150:   //! @[prepare_method], @[do_async], @[do_thread]    Request do_sync(array(string|int|mapping) args)    {    for (;;)    {    if(!con) con=give_me_connection(url_requested);    con->sync_request(@args);    if (con->ok)    {    check_for_cookies(); +  while( con->status == 100 ) +  con->ponder_answer( con->datapos );    if (con->status>=300 && con->status<400 &&    con->headers->location && follow_redirects)    {    Standards.URI loc=    Standards.URI(con->headers->location,url_requested);       if(loc->scheme=="http" || loc->scheme=="https")    {    destroy(); // clear    args=prepare_method("GET",loc);