Hi Rajapandian,

please go through the usual checklist:

1. did you execute a GET before the POST to establish a session?

2. are session cookies obtained with the GET sent back as expected?
   Play around with cookie policies and "single-cookie-header", as
   mentioned in the cookie guide.

3. are you sure you send all required parameters with the POST?
   In the same format as indicated by the <form> in the web page?
   (multipart vs. URL-encoded)

4. try sending a User-Agent header with an IE or Mozilla value

5. try sending a Referer-Header (spelling intentional)

6. get a network monitor, grab the request sent by the browser,
   then compare the one generated by HttpClient line-by-line

7. if you have problems creating a request identical to the one
   generated by the browser, post a *detailed* description of
   what you want to send and what is generated by HttpClient

hope that helps,
  Roland

Rajapandian R wrote:
> Dear all
> 
> I am submitting  some values to the  page(http://www.goair.in/) using
> PostMethod and i am expecting  to get the next
> page(http://www.goair.in/Booking/BERP_Availability.aspx), but i am not
> able to get the page
> 
> 
> The action of the form in  page  http://www.goair.in/ was
> http://www.goair.in/besr_availability.aspx,
> 
> So i use the following code to initialise postmethod
> PostMethod method2 = new
> PostMethod("http://www.goair.in/Besr_availability.aspx";);
> 
> I am expecting a redirect response, so that i can proceed and get the
> expected page (http://www.goair.in/Booking/BERP_Availability.aspx) ,
> but i am not getting any redirect response,instead of that i am getting
> a 200 OK response with content of length  zero.
> 
> Please help to solve this  problem.
> 
> regards
> rajapandian
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to