Add an option to pass prefer_curl setting through $arguments

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Add an option to pass prefer_curl...  >  (Un) Subscribe thread alerts  
Subject:Add an option to pass prefer_curl...
Summary:$http->Open(["prefer_curl"=>true]);
Messages:4
Author:Jan Hajek
Date:2015-08-11 10:03:02
 

  1. Add an option to pass prefer_curl...   Reply   Report abuse  
Picture of Jan Hajek Jan Hajek - 2015-08-11 10:03:02
When using $http->Open, it would be great to be able to pass "prefer_curl" setting through arguments of Open function.

Starting on line 645 - maybe to have it simple like this:
if(IsSet($arguments["prefer_curl"])) $this->prefer_curl=$arguments["prefer_curl"];

Thank you for considering.

(I am using this library with your oauthclient module and it is quite crucial for me to use cURL since fsockopen is broken on my server and I would prefer cURL anyways).

  2. Re: Add an option to pass prefer_curl...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-08-12 03:39:51 - In reply to message 1 from Jan Hajek
OK, just give me some time to do it.

  3. Re: Add an option to pass prefer_curl...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-08-22 19:03:41 - In reply to message 1 from Jan Hajek
Sorry for the delay. I just added the PreferCurl option to the Open function as you requested.

  4. Re: Add an option to pass prefer_curl...   Reply   Report abuse  
Picture of Jan Hajek Jan Hajek - 2015-08-22 19:21:12 - In reply to message 3 from Manuel Lemos
Thank you very much Manuel! I will try it out soon. Great job, thanks a lot again.

 

For more information send a message to info at phpclasses dot org.