These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Ale Error - Unknown request protocol, use http:// only

Author
MonkeyGuru
caldari groupies
#1 - 2012-08-16 03:53:05 UTC
Just thought I would share, since I looked all over the intertubez, and couldn't find the answer, and was forced to do some debugging.

If you are getting the Unknown request protocol, use http:// only Error while using Fsock, all you need to do is make one small change.

In the /ale/request/fsock.php file update the 2nd if statement in the Query function:



public function query($url, array $params = array()) {
$parsed = parse_url($url);
if (!isset($parsed['port'])) $parsed['port'] = 80;
// Below line was changed to check for HTTPS not HTTP, which was throwing an error
if (!isset($parsed['scheme']) || $parsed['scheme'] != 'https') throw new AleExceptionRequest('Unknown request protocol, use http:// only');
if (!isset($parsed['path'])) $parsed['path'] = '/';


Pretty much all you are changing is, the HTTP to HTTPS. I can only assume at some point the URL that was used, required this to be HTTP in the past, but I have confirmed functionality with this change.

Server info: Ubuntu 12. running Apache LAMP.

FYI if anyone is looking for a Coder, or someone to assist with design, please let me know!

-MG