CURL and Object Moved

Discussion in 'PHP' started by tdd1984, Apr 20, 2010.

  1. #1
    We are using CURL to receive an XML response from a third-party company. I am having an issue though although everything is working great in CURL. Some states though redirect into another ASP page which contains the XML data.

    When it does this it says "Object Moved" below that it says "This Object May Be Found Here" with a link in it of the new location. There is only like 5 states that do this. Does anyone know how to resolve this issue?
     
    tdd1984, Apr 20, 2010 IP
  2. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #2
    Are you setting CURLOPT_FOLLOWLOCATION to true with your set of options for curl_setopt ?
     
    joebert, Apr 20, 2010 IP