CURL Loads Very Slow & Returns Blank

Hello Everyone,

I asked this question in the IRC chat last night, and wasn't able to solve it. If anyone there who was assisting me is reading this, I had to run out unexpectedly, so I apologize for leaving.

The title pretty much sums up the issue, CURL takes at least 20 seconds to load the page (testing with the twitter API) and then returns a blank result, or when we're showing curl errors, it shows a timeout error. I have also tested curl in the command line, where it works fine. An example simple CURL call to the twitter API can be found at http://www.strikeinternet.com/includes/ … status.php">http://www.strikeinternet.com/includes/twitter-status.php

Also, the exact same code hosted on my old server (from a different company) can be seen here http://strikesignup.com/~strike/include … status.php">http://strikesignup.com/~strike/includes/twitter-status.php

And here is a link to the actual php code: http://pastebin.com/twaFXySW

Relating to the CURL slowness, I've had a problem similar to that before, although I don't remember how it was solved other than something to do with reverse DNS. Our resolv.conf file is the exact file recommended by Linode support and the reverse dns for our server's main IP is set to the hostname under the "remote access" tab in the Linode manager.

Thanks in advance for the help!

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct