SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast mildfoam's Avatar
    Join Date
    May 2010
    Location
    Australia.
    Posts
    56
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to use cURL work with POST method form

    hi there,


    Now, i am already know how to get another site search result and then display them in my site but it's just using $_GET method. Now, i am dealing with opposite method that is $_POST method just like this site:

    after we've selected any data such as "pulang pergi", "dari = jakarta", "ke = surabaya", "pergi = 22 Dec 2012", "pulang = 25 Dec 2012" or you can use another data and leave another as default then do search button. It will sent us to this link: https://booking.sriwijayaair.co.id/b2c/availability.jsp

    i am trying to fetch all data in that page into my site but i can guess how i can done with this situation

    fyi: I am just do it for learning not any business or stealth related.

    Thanks Mate,
    Object Oriented Programming Fans Boy ?

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    #1: That site is painfully slow for me from the US.
    #2: This is the second time you've come to us to ask how to scrape a site that explicitly says you MAY NOT scrape data from their site without prior written consent.
    #3: You keep throwing in little caveats to make people think you're doing this legitimately, but that just makes it look worse.

    I've already stated in the previous thread that you should look at cURL's commands, and thats as far as i'm going to support this thread as well.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,269
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    Your best answer will come from the site owners.

    Explain your situation and ask about their API

    BTW "into my site" and "for learning" are contraditions.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •