hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: POST request support in HttpCore 4.0-alpha1
Date Tue, 06 Jun 2006 16:58:58 GMT
Hello,

> Following the examples I cannot make one single login-like post request
> to function...
> Is it supported in this release ?

Of course it is supported. It's only that some of the features that make
HttpClient comfortable to use are NOT in HttpCore. For example cookie
handling, which is a prerequisite for session tracking on most servers.
You have to do that yourself with HttpCore - or wait for HttpClient 4.

Although it mostly mentions HttpClient, the Client HTTP Programming Primer
should be helpful in your situation, too:
http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners

The "Establish the Session" step requires application code with HttpCore.
The "POST the Form" step includes a header-for-header comparison of the
request sent with your library of choice (HttpCore, as it seems) against
the request from a browser or another library know to generate successful
requests. That should eventually uncover all problems. HttpCore does not
provide wire logging, so you'll have to debug-print or sniff the request
headers yourself, too.

hope that helps,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message