You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by "Jochen Wiedmann (JIRA)" <xm...@ws.apache.org> on 2005/11/30 22:07:30 UTC

[jira] Geschlossen: (XMLRPC-15) Replace underlying HTTP client functionality with Jakarta Commons HttpClient

     [ http://issues.apache.org/jira/browse/XMLRPC-15?page=all ]
     
Jochen Wiedmann closed XMLRPC-15:
---------------------------------

    Resolution: Fixed
     Assign To:     (was: rpc-dev mailing list)

See CommonsXmlRpcTransportFactory.


> Replace underlying HTTP client functionality with Jakarta Commons HttpClient
> ----------------------------------------------------------------------------
>
>          Key: XMLRPC-15
>          URL: http://issues.apache.org/jira/browse/XMLRPC-15
>      Project: XML-RPC
>         Type: Bug
>   Components: Source
>     Versions: unspecified
>  Environment: Operating System: All
> Platform: All
>     Reporter: Ryan Hoegg

>
> The current software used to connect to HTTP servers in the client portions of
> the library is java.net.URLConnection.  I propose an upgrade to the Jakarta
> Commons HttpClient at hhttp://jakarta.apache.org/commons/httpclient/ for several
> reasons:
> - Cleaner handling of authentication
> - Cookie support, which would close Bug 13298
> - General HTTP header handling (currently used in my application for User-Agent
> header.
> - Full HTTP 1.1 support.  This one is controversial as the XML-RPC spec
> prohibits the use of HTTP chunking.  However, servers out there are known to use
> it, so this provides the capability without a mandate.  If we decide against it,
> we can just hardcode setHttp11(false); however I recommend exposing this option
> to users.
> I have a working patch but am currently waiting to hear from committers on the
> preferred API changes before submitting.  Also, my patch uses HttpClient
> 2.0alpha.  We may want to wait until 2.0 goes stable as the HttpClient team is
> still finalizing the API for 2.0.
> My patch currently adds the following public methods to XmlRpcClient:
> setUserAgent(String userAgent)
> setHttp11(boolean http11)
> we may also want:
> addHttpHeader(Header header)
> or
> addHttpHeader(String header, String value)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira