Urgently need help with small PHP cURL script!

Discussion in 'PHP' started by b0bleponge, Nov 21, 2009.

  1. #1
    EDIT: I had a problem with a script using eBay's search engine, but apparently it's their site that is experiencing troubles. Forget this message!

    http://pages.ebay.com/messages/page_unavailable.html
     
    Last edited: Nov 21, 2009
    b0bleponge, Nov 21, 2009 IP
  2. b0bleponge

    b0bleponge Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Apparently eBay fully fixed their problem, but mine is still there, so any help would be greatly welcome.
    In short, I made a simple script much like a "new item matching your criterias has been posted" using eBay's search engine with cURL, not their APIs.

    It was working fine during the past month until eBay's outage, where a cURL request made with this URL:

    Returns a page saying this:

    The code is as simple as:

    Where $content returns the above page.

    Obviously, banana is replaced by something more useful!

    What's wrong?

    Thanks so much.

    PS: I separated http's as I don't have permission to post live links (10 posts)... these spaces are obviously not in the code.
     
    b0bleponge, Nov 22, 2009 IP
  3. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Nothing wrong with your code
    I added
    echo $content;
    I was able to view the results.
     
    javaongsan, Nov 22, 2009 IP