anchor.diff:   	    ?Debug("~p~n", [_Other]),
   	    data_loop(Pid, Port)
       end.
  -    
  +
   
   
   get_line({start, Port}) ->
  
positive.code: 		    handle_clidata(Arg, Worker);
  		undefined ->
  		    ?Debug("Error while reading clidata: ~p~n", 
  			[Arg#arg.clidata]),
  						% Error, what to do?
  		    exit(normal)
  	    end;
  	_ ->
  
negative.code:     PeerAddr = get_socket_peername(Arg#arg.clisock),
      LocalAddr = get_socket_sockname(Arg#arg.clisock),
  
      Scheme = (catch yaws:redirect_scheme(SC)),
      %% Needed by trac, for redirs after POST
      HttpsEnv  = case Scheme of
                      "https://" -> [{"HTTPS", "1"}];
                      _ ->[]
                  end,
  
  
      %%Scriptname = deep_drop_prefix(Arg#arg.docroot, Arg#arg.fullpath),
      %%SCRIPT_NAME is the path of the script relative to the root of the website.
      %%just dropping docroot from the fullpath does not give the full SCRIPT_NAME 
      %% path if a 'vdir' is involved.
      UriTail = deep_drop_prefix(Arg#arg.docroot, Arg#arg.fullpath),
      case Arg#arg.docroot_mount of
  	"/" ->
  	    %%no arg.docroot_mount means that arg.docroot corresponds to the URI-root of the request "/"
  	    Scriptname = UriTail;
  	Vdir ->
  	    Scriptname = Vdir ++ string:strip(UriTail,left,$/)
      end,	
  
      Pathinfo2 = checkdef(Pathinfo),
      case Pathinfo2 of
  	"" ->
  	    PathTranslated = "";
  	_ ->
  	    %%determine what physical path the server would map Pathinfo2 
  	    %%to if it had received just Pathinfo2 in the request.
  	    PathTranslated = yaws_server:mappath(SC,Arg,Pathinfo2)
      end,
  
  
      %%Pass auth info in environment - yes - including password in plain text.
      %%REMOTE_USER always = AUTH_USER
      %%!todo - LOGON_USER - same as AUTH_USER unless some auth filter has mapped 
      %%the user to another username under which to run the request.
      case H#headers.authorization of
  	undefined ->
  	    AuthEnv = [];
  	{User, Password, "Basic " ++ Auth64} ->
  	    AuthEnv = [
  		       {"HTTP_AUTHORIZATION", "Basic " ++ Auth64},
  		       {"AUTH_TYPE", "Basic"},
  		       {"AUTH_USER", User},
  		       {"REMOTE_USER", User},
  		       {"LOGON_USER", User},
  		       {"AUTH_PASSWORD", Password}
  		      ];
  	{_User, _Password, _OrigString} ->
  	    %%not attempting to pass through any auth info for auth schemes that we don't yet handle
  	    AuthEnv = []
      end,
  
      %%todo - review. should AuthEnv entries be overridable by ExtraEnv or not?
      %% we should define policy here rather than let through dupes.
  
      ExtraEnv ++
  	HttpsEnv ++
  	AuthEnv ++
  	lists:filter(
            fun({K, L}) when list(L) -> 
  