comparison php/read/aws_signed_request.php @ 43:dbc006408d2b

ASSUMES we have SetEnv PHP_VALUE "include_path =.:/var/test/private:/var/test/ywww:/usr/share/php" in apache2/.../test.conf use dl(...) for debug logging, defined in dlog.php use doAmazonRequest in amazonBookSearch use ../private/web.php (q.v., not in mercurial) for Aserver and Aassociates Started by updating from 40:c24ae74bf6d5, i.e. just before the bug on the main line
author Charlie Root
date Sat, 05 Jan 2019 18:00:10 -0500
parents 2c0c95bd97a6
children
comparison
equal deleted inserted replaced
42:3f400072bf14 43:dbc006408d2b
1 <?php 1 <?php
2 2
3 //20090627/Jaap van Ganswijk: This is a modified version, see the 3 //20090627/Jaap van Ganswijk: This is a modified version, see the
4 //return statement some lines before the end of the last function. 4 //return statement some lines before the end of the last function.
5
6
7 $Aassociates_id=array(
8 'uk' => 'bookwhack-21',
9 'us' => 'your02b-20',
10 'ca' => 'book009-20',
11 'de' => 'book04c-21',
12 'fr' => 'book07f-21',
13 );
14
15 $Aserver=array(
16 'ca' => array(
17 'ext' => 'ca' , //Canadian normal server
18 'nor' => 'http://www.amazon.ca' , //Canadian normal server
19 'xml' => 'http://xml.amazon.com' , //Canadian xml server
20 ),
21 'de' => array(
22 'ext' => 'de' , //German normal server
23 'nor' => 'http://www.amazon.de' , //German normal server
24 'xml' => 'http://xml-eu.amazon.com', //German xml server
25 ),
26 'fr' => array(
27 'ext' => 'fr' , //French normal server
28 'nor' => 'http://www.amazon.fr' , //French normal server
29 'xml' => 'http://xml-eu.amazon.com', //French xml server
30 ),
31 'jp' => array(
32 'ext' => 'jp' , //Japanese normal server, not co.jp!
33 'nor' => 'http://www.amazon.co.jp' , //Japanese normal server
34 'xml' => 'http://xml.amazon.com' , //Japanese xml server
35 ),
36 'uk' => array(
37 'ext' => 'co.uk' , //UK normal server
38 'nor' => 'http://www.amazon.co.uk' , //UK normal server
39 'xml' => 'http://xml-eu.amazon.com', //UK xml server
40 ),
41 'us' => array(
42 'ext' => 'com' , //USA normal server
43 'nor' => 'http://www.amazon.com' , //USA normal server
44 'xml' => 'http://xml.amazon.com' , //USA xml server
45 ),
46 );
47
48 5
49 if (!function_exists("aws_signed_request")) { 6 if (!function_exists("aws_signed_request")) {
50 function aws_signed_request($region, $params, $public_key, $private_key) 7 function aws_signed_request($region, $params, $public_key, $private_key)
51 { 8 {
52 /* 9 /*