Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Linux shared hosting STREAMS/SOCKETS problem

Options
  • 22-01-2011 12:44pm
    #1
    Closed Accounts Posts: 1


    I've build a site that uses the twitter api, unfortunately the server has a problem that is not permanent it comes and goes like the tide.

    Description: firstly I've used this code:
    [PHP]$twitter = file_get_contents("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=consmagic"); [/PHP]
    After I noticed the problem tried using :
    [PHP]$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=consmagic");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $twitter = curl_exec($ch);
    curl_close($ch);[/PHP]

    The error :
    After debugging the error message it returns is : 400 Malformed Request (This is what the Twitter API Server returns)

    The code has been tested on 3 other servers (centos 5.5, freebsd, win7) and was working fine when the blacknight server was returning the error.

    The error is not caused by the code or the twitter server so this leaves only the blacknight server as the issue, please advise on this problem.


Comments

  • Registered Users Posts: 7,739 ✭✭✭mneylon


    Please contact our support desk with specifics

    As you already posted about this on our own forum our technical team might already be aware of your issue


Advertisement