Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8288769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:20:38+00:00 2026-06-08T12:20:38+00:00

I am using the PHP OAuth extension to connect to the Netflix API and

  • 0

I am using the PHP OAuth extension to connect to the Netflix API and pull data through a GET request.

Running the request on my local machine results in a successful try and the correct data returned.

However, upon pushing the request up to our ‘live’ server, I’ve immediately run into issues with the PHP OAuth extension failing.

I am using version 1.2.2 of the extension with curl as my request method (libcurl is also installed). My PHP code to call the OAuth fetch is:

$oauth = new OAuth($this->key, $this->secret);
$resource = $oauth->fetch($url, array('v' => '2.0', 'include_tms' => 'true'));
$this->_writeFile($oauth->getLastResponse());

Again, this exact code works 100% on my local dev machine (Mac running OS X Lion, installed php-oauth through MacPorts … also version 1.2.2 … PHP 5.3.8). However, when running on our server (Debian Linux, PHP 5.3.3, installed php-oauth through apt-get) I receive the following error:

PHP Fatal error: Uncaught exception ‘OAuthException’ with message ‘making the request failed (Failure when receiving data from the peer)’ in /var/www/familymedia/application/Services/Netflix.php:23

I’m really not sure what to make of this error.

Some further info:

We currently make successful cURL requests from our server to other API services and return back good information without issue on an hourly basis. However, none of those services authenticate through OAuth, so none of them required the OAuth extension and I ran them straight with php curl.

I have a feeling that there is some sort of setup issue with the php-oauth extension on our live server that MacPorts “magically” solved for me during install on my local machine … but I cannot find any install or configuration advice/instruction/etc that has helped.

Hoping someone has an answer or a place to point me for further discovery toward an answer …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:20:39+00:00Added an answer on June 8, 2026 at 12:20 pm

    Thought I’d update this question with the answer found: the company was specifically blocking inbound communication from Netflix. IT solved the issue. Not a very exciting answer, but that’s what it was.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using php I am trying to get some data from a .csv file which
I've made an OAuth Provider using the PHP Extension . This works fine in
I have just succeeded in creating oAuth authentication for my twitter application using PHP.
I am using the OAuth 2.0 PHP Library to develop a OAuth 2.0 server
Using PHP, I can convert MySQL data or static table data to csv, Excel,
I'm having a strange problem using PHP's OAuth PECL library - I seem to
I'm trying to access Gmail by using three-legged Oauth PHP code provided by Google
I'm trying to get twitter update_profile_image to work using OAuth. I was using curl
I'm designing a Google Contacts Import application using OAuth and PHP. I'm trying to
Using Facebook's PHP SDK, I was able to get Facebook login working pretty quickly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.