smaller reset larger        English  Portuguese  Spanish  French         

Main Menu



Sub Menu

Article Data
Article Ref
4417-SKZC-3359
Written By
Rafael
Date Created
Wed, 27th Jun 2012
Updated By
Alexis
Date Modified
Tue, 10th Jun 2014
 
()

   The Fortune3 API is failing intermittently. What could be the main cause for this?

Question 

 The Fortune3 API is failing intermittently. What could be the main cause for this?

Answer 

This is more than likely being caused by a missing User-Agent or Host in your header. The following is an example of a properly created PHP request:

$params = array('http' => array(
'method' => 'POST',
'header' => "Host: http://www.fortune3.com\r\nUser-Agent: f3client API\r\n",
'content' => $data
));


In addition to the script listed above, you must also run the following command:

ini_set('user_agent', "f3client API\r\n");

Replace the word f3client with your Fortune3 username on both codes. Please check your PHP script if you are experiencing this issue.

How Useful Was This Article?      (Rating: 100%    Votes: 4)  

Select a Rating