You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Stojce Dimski <sd...@yahoo.it> on 2006/06/06 17:44:30 UTC

POST request support in HttpCore 4.0-alpha1

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


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


Re: POST request support in HttpCore 4.0-alpha1

Posted by Roland Weber <ht...@dubioso.net>.
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


Re: POST request support in HttpCore 4.0-alpha1

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2006-06-06 at 17:44 +0200, Stojce Dimski wrote:
> Following the examples I cannot make one single login-like post request
> to function...

What _specifically_ does not function?

> Is it supported in this release ?
> 

HttpCore is intended to support only the very fundamental HTTP transport
aspects. It is not meant to be a one to one replacement for HttpClient
3.x. What is it _specifically_ that you think not supported?

Oleg


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


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