Login to another site and pull data from it

Discussion in 'PHP' started by LeftoverSoup, Dec 25, 2009.

  1. #1
    Hi,


    How would I develop something that could Login to an external site from my site.. then grab some data from a selected page.. then feed it back to my website.

    It can be done. The only way I can think of doing it is using a proxy that then grabs the data and feeds it back to my page.

    What would the best option for me? how would I start?

    Someone point me in the correct direction?
     
    LeftoverSoup, Dec 25, 2009 IP
  2. hipromx

    hipromx Active Member

    Messages:
    236
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Hmm which kind of data and which kind of site would you like to link with? I suppose that the other site is also yours, is it?
     
    hipromx, Dec 25, 2009 IP
  3. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #3
    curl would be your best option...
     
    creativeGenius, Dec 26, 2009 IP
  4. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #4
    you can try with curl. u need to setup some login parameters , session in curl and try to fetch that site contents
     
    chandan123, Dec 26, 2009 IP
  5. AustinQPT

    AustinQPT Member

    Messages:
    75
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #5
    You can do this quite easily with cURL, however if it has captchas and it is not your site it will be extremely difficult if not impossible for the average coder. If it is your site and it has captchas you can still access it, but will need to setup another login page that is hidden and locked down with a $_get variable then use that for your cURL function.
     
    AustinQPT, Dec 26, 2009 IP