You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2003/11/26 11:23:47 UTC

DO NOT REPLY [Bug 25006] New: - allow to "wrapUp" request for debugging before it is actually sent

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: commons-httpclient-dev@jakarta.apache.org
        ReportedBy: g.hueller@gmx.at


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: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org