Closed (won't fix)
Project:
Amazon associate tools
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2007 at 17:21 UTC
Updated:
17 Sep 2008 at 21:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
bicou commentedOn my system (Ubuntu/2.6.20-16-generic, Apache/2.0 and PHP/5.2.1), I tried using fopen and drupal_http_request. The only difference between the two results were :
- different RequestId and RequestProcessingTime (of course)
- different user agent : ' Value="Drupal (+http://drupal.org/)"' is added right after 'Name="UserAgent"'
(Amazon's servers send us back the UserAgent we sent them, and as drupal sends its own user agent, it is different than the one used by php)
Hence, I think we should use drupal_http_request and remove cURL from the required software list (I don't have cURL installed on the server).
I attached a patch with my modifications, the module was 100% working and 100% not using cURL.
Comment #2
bomarmonk commentedPatch is for amazon.php4.inc, by the way. It didn't apply cleanly, but I made the change by hand and there are no more cURL related errors. However, my CCK content will not display the amazon data. Does a corresponding change need to be made to ASIN/ISBN module for CCK? Thanks for any suggestions as to what might be wrong.
Comment #3
wayland76 commentedComment #4
wayland76 commentedhttp://drupal.org/node/143565
Similar node
Comment #5
MGParisi commentedNo longer supports 4.X! Sorry