You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by "Suchitra@gmail1" <su...@gmail.com> on 2005/04/29 08:20:26 UTC

posting problem..

hi everyone..
i am trying to submit a form to a site using HttpClient..
the site has a login page (http://<xyz.site.com>/<loginpage>/) this is a
http site.
Now after logging in, comes that page with the form (which is to submitted)
which is a "https" page..ie. something like (
https://<abcdef.other.com>/<updateInfopage>/ )
I am able to login in and get/traverse all the pages etc.
but the problem i am getting is in posting the form on updateInfoPage.. on
posting it gives with HTTP 200 OK..
and no redirect location.. (whereas when i do the same with the browser it
redirects me back to the same page).
Even if  200 OK is not a problem .. still the request is not actually
getting posted.. because the form field values that should be actually be
updated are not getting updated from my program :(
whereas they get updated from the browser..
If anyone can help me out, i can send the code excerpts etc...
Thanx
Suchitra



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


Re: posting problem..

Posted by "Suchitra@gmail1" <su...@gmail.com>.
Thanx Roland.
ya u r correct .. but response code was not the problem.. and there was no
hidden redirect field too..
but what i had missed while posting the form was the save or the update
button itself in the parameter(namevalue pair) list.
Silly on my part..
now the fields are getting updating :-) !
Still thanx again..
 Suchitra
----- Original Message ----- 
From: "Roland Weber" <RO...@de.ibm.com>
To: "HttpClient User Discussion" <ht...@jakarta.apache.org>
Sent: Friday, April 29, 2005 12:05 PM
Subject: Re: posting problem..


> Hello Suchitra,
>
> some sites implement redirects on the application level
> instead of the protocol level. HttpClient handles only
> HTTP redirects, that is status codes 30x. You should
> have a look at the page you get with the 200 response.
> Maybe the redirect is hidden there. Your application will
> have to deal with it, though.
>
> hope that helps,
>   Roland
>
>
>
>
> "Suchitra@gmail1" <su...@gmail.com>
> 29.04.2005 08:20
> Please respond to
> "HttpClient User Discussion"
>
>
> To
> "httpclient" <ht...@jakarta.apache.org>
> cc
>
> Subject
> posting problem..
>
>
>
>
>
>
> hi everyone..
> i am trying to submit a form to a site using HttpClient..
> the site has a login page (http://<xyz.site.com>/<loginpage>/) this is a
> http site.
> Now after logging in, comes that page with the form (which is to
> submitted)
> which is a "https" page..ie. something like (
> https://<abcdef.other.com>/<updateInfopage>/ )
> I am able to login in and get/traverse all the pages etc.
> but the problem i am getting is in posting the form on updateInfoPage.. on
> posting it gives with HTTP 200 OK..
> and no redirect location.. (whereas when i do the same with the browser it
> redirects me back to the same page).
> Even if  200 OK is not a problem .. still the request is not actually
> getting posted.. because the form field values that should be actually be
> updated are not getting updated from my program :(
> whereas they get updated from the browser..
> If anyone can help me out, i can send the code excerpts etc...
> Thanx
> Suchitra
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>
>


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


Re: posting problem..

Posted by Roland Weber <RO...@de.ibm.com>.
Hello Suchitra,

some sites implement redirects on the application level
instead of the protocol level. HttpClient handles only
HTTP redirects, that is status codes 30x. You should
have a look at the page you get with the 200 response.
Maybe the redirect is hidden there. Your application will
have to deal with it, though.

hope that helps,
  Roland




"Suchitra@gmail1" <su...@gmail.com> 
29.04.2005 08:20
Please respond to
"HttpClient User Discussion"


To
"httpclient" <ht...@jakarta.apache.org>
cc

Subject
posting problem..






hi everyone..
i am trying to submit a form to a site using HttpClient..
the site has a login page (http://<xyz.site.com>/<loginpage>/) this is a
http site.
Now after logging in, comes that page with the form (which is to 
submitted)
which is a "https" page..ie. something like (
https://<abcdef.other.com>/<updateInfopage>/ )
I am able to login in and get/traverse all the pages etc.
but the problem i am getting is in posting the form on updateInfoPage.. on
posting it gives with HTTP 200 OK..
and no redirect location.. (whereas when i do the same with the browser it
redirects me back to the same page).
Even if  200 OK is not a problem .. still the request is not actually
getting posted.. because the form field values that should be actually be
updated are not getting updated from my program :(
whereas they get updated from the browser..
If anyone can help me out, i can send the code excerpts etc...
Thanx
Suchitra



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