You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Vijaya Kumar <vi...@businex.com> on 2001/08/06 10:48:54 UTC

org.apache.commons.httpclient source code?

Hi Remy,

            Can u tell me the place where you kept the source code for
"org.apache.commons.httpclient" package.

            One more thing, What actually happens while trying to create the
connection with the server. How you are establishing the connection to the
server whether using the Sockets or URLConnection.

            Do you have any idea of how to pass the headers to the servlet
from the application.
Thanx.



Re: org.apache.commons.httpclient source code?

Posted by Dirk Verbeeck <di...@pandora.be>.
Vijaya Kumar wrote:

> Hi Remy,
> Can u tell me the place where you kept the source code for
> "org.apache.commons.httpclient" package.

It should be on the Commons site (http://jakarta.apache.org/commons/index.html)
but that site is down.
You can browse the cvs here:
http://cvs.apache.org/viewcvs/jakarta-commons/httpclient/


> One more thing, What actually happens while trying to create the
> connection with the server. How you are establishing the connection to the
> server whether using the Sockets or URLConnection.

We are using Sockets see HttpClient.openConnection()

> Do you have any idea of how to pass the headers to the servlet
> from the application.

On a HttpMethod use: public void setHeader(String headerName, String
headerValue);


Dirk