javax_slr (javax_slr) wrote,
javax_slr
javax_slr

Help with HTTP!

I'm trying to simulate a user interaction with the website meridiana.it using Apache HTTP client 4.3

I see (using Developers tools in Chrome) that a search for tickets is done by following steps:
1. I enter the web site "https://www.meridiana.it/home/index/en/" and receive session cookie.
2. A browser sends HTTP Post with flight details to https://www.meridiana.it/Home/SubmitSearch and receive response 302 with a header "Location" with some URL
3. The browser goes to this URL using GET, receives http code 302 again with location https://www.meridiana.it/booking/search.aspx?language=en
4.We make HTTP GET to https://www.meridiana.it/booking/search.aspx?language=en and here it receives response code 200 with search results

My problem is that in step 3 I receive HTTP code 200 w/o redirection to results.

Can somebody help me?
I can send my Groovy+HTTP Client 4.3 script ...

Thank you!
Tags: programming
Subscribe

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 6 comments