anchor.diff:              NewSC = pick_sconf(GS#gs.gconf, H, GS#gs.group),
               put(sc, NewSC#sconf{appmods = OldSC#sconf.appmods}),
   
  -            check_keepalive_maxuses(GS, Num),
  -            Call = call_method(Req#http_request.method,
  -                               CliSock, {IP,Port},
  -                               Req#http_request{path = {abs_path, Page}},
  -                               H#headers{content_length = undefined}),
  +            %% Rewrite the request
  +            NextReq = Req#http_request{path = {abs_path, Page}},
  +
  +            %% Renew #arg{}: keep clidata, state and cont
  +            Arg0 = case get(yaws_arg) of
  +                       undefined -> #arg{};
  +                       A         -> A
  +                   end,
  +            Arg1 = make_arg(CliSock, {IP,Port}, H, NextReq, Arg0#arg.clidata),
  +            Arg2 = Arg1#arg{cont=Arg0#arg.cont, state=Arg0#arg.state},
  +
  +            %% Get the number of bytes already read and do the reentrant call
  +            CliDataPos = case get(client_data_pos) of
  +                             undefined -> 0;
  +                             Pos       -> Pos
  +                         end,
  +            Call  = handle_request(CliSock, Arg2, CliDataPos),
               Call2 = fix_keepalive_maxuses(Call),
  -            handle_method_result(Call2, CliSock, {IP,Port}, GS, Req, H, Num)
  +            handle_method_result(Call2, CliSock, {IP,Port}, GS, NextReq, H, Num)
       end.
   
   
  
positive.code:             erase_transients(),
              {ok, Num+1};
          {page, P} ->
              %% keep post_parse
              erase(query_parse),
              put(outh, #outh{}),
              case P of
  
negative.code:                        {_, Q}  -> Path ++ "?" ++ Q
                     end
             end,
  
      %% Set variables used in handle_method_result/7
      put(yaws_arg, Arg),
      put(client_data_pos, N),
      {page, {[{status, Code}], Page}};
  deliver_redirect_map(CliSock, Req, Arg,
                       {_Prefix, Code, URL, Mode}, _N) when is_record(URL, url) ->
      %% Here Code is 3xx
      ?Debug("in redir ~p", [Code]),
      H = get(outh),
  