DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25006>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25006

allow to "wrapUp" request for debugging before it is actually sent

           Summary: allow to "wrapUp" request for debugging before it is
                    actually sent
           Product: Commons
           Version: 2.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: HttpClient
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello,
I'd like to be able to get the total content that is sent to a socket by 
httpclient into a stream.
The reason is that some servers handle some headers differently, and I want to 
know exactly what httpclient does.
This could also be handy if you want to send a request manually e.g. with 
netcat.

My suggestion: 
methodBase currently does writeRequestHeaders() which does addRequestHeaders().
I think of a public wrapupRequest() which sets an internal boolean and in turn 
calls addRequestHeaders.
IF wrapupRequest has been called, no more request manipulations can be done and 
throw an IllegalStateException.
and IF the flag is set, further calls to addRequestHeaders have no effect.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to