Skip to main content

Timeline for Problem with cURL

Current License: CC BY-SA 3.0

17 events
when toggle format what by license comment
Dec 22, 2017 at 14:21 history edited avpaderno
edited tags
Mar 11, 2012 at 18:26 history edited avpaderno
edited tags
Mar 11, 2012 at 10:20 comment added tunny Using the following function call fixed this for me: http_build_query($params, NULL, '&').
Jun 24, 2011 at 15:01 history edited avpaderno
edited tags
May 29, 2011 at 18:15 vote accept lordg
May 29, 2011 at 18:15 answer added lordg timeline score: 1
May 26, 2011 at 10:37 comment added lordg @bsenftner unfortunately I reviewed your code and did some tests using some of your CURL setups. Unfortunately it didn't help as I still get back only one request from the remote API when running within Drupal. Clearly Drupal is changing a variable that CURL uses and this modifies the request.
May 23, 2011 at 19:56 history edited avpaderno
edited tags
May 23, 2011 at 16:50 history edited lordg
edited tags
May 21, 2011 at 14:28 comment added Blake Senftner Here's a Drupal documentation page I wrote that demonstrates communicating with a remote API. The method shown has two implementations, one with cURL and one with the Drupal API. you can use that as a guide to see what you're doing different from my example. I've found cURL to have no limitations between being used inside or outside of a Drupal run-time environment... drupal.org/node/1070066
May 21, 2011 at 9:13 history edited lordg CC BY-SA 3.0
added 145 characters in body
May 21, 2011 at 9:11 comment added lordg @kiamlaluno I have several other pieces of code and api classes written using CURL, as it gives the maximum control. They are classes that I may run outside Drupal in the future, so I cannot rely on a drupal function.
May 21, 2011 at 9:09 comment added lordg @garrett-albright its just simple a file that is being included. I've attempted included it outside of a function, in a function, in the index.php file, before and after the bootstrap. It makes no difference. If it runs after bootstrap, the problem occurs.
May 21, 2011 at 6:55 comment added Garrett Albright How exactly is this code being executed by Drupal? Is it in a hook implementation somewhere, and if so, which hook? Or is it being passed through the PHP filter maybe?
May 20, 2011 at 23:49 comment added avpaderno Is there any reason you could not use drupal_http_request()?
May 20, 2011 at 23:48 history edited avpaderno CC BY-SA 3.0
added 89 characters in body; edited title
May 20, 2011 at 17:13 history asked lordg CC BY-SA 3.0