curl in php

Discussion in 'PHP' started by joansylvia, Oct 17, 2011.

  1. #1
    i inserted a domain of different server say, www.someotherdomain.com in my domain(www.mydomain.com) using frames. now i need to login and get into a form of www.someotherdomain.com. how to send username and password to another domain of different server from my domain? can v do this using curl in php?

    note: login should be done automatically, that is on server side. so that the customer may not know they logged in. the view should be like this: they have to click a link of my site and get a form of another site.

    but before entering into the form of another domain, i need to login. how to overcome this. please help me.

    thanks for understanding.
     
    joansylvia, Oct 17, 2011 IP
  2. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #2
    It can easily be achieved by using curl_cookies, and curl_post
     
    ssmm987, Oct 17, 2011 IP
  3. joansylvia

    joansylvia Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can u give me some examples. because i tried. but i dont know to submit the login page automatically also i dont think the username and password are posted to that domain. i am very much confused. pls, help me with the coding.

    thanks
     
    joansylvia, Oct 17, 2011 IP
  4. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0