tetherless-world / s2s

Tetherless World S2S Faceted/Hierarchical Browser
GNU General Public License v2.0
1 stars 0 forks source link

curl options in s2s php code needs to be able to follow redirects #6

Closed mrpatrickwest closed 9 years ago

mrpatrickwest commented 10 years ago

Added a rewrite rule to the apache web server configuration. This caused the endpoint to return a 302 response to the php code, which is a permanent address change. We need to be able to follow redirects in the curl options.

zednis commented 10 years ago

You can pass additional CURL options to the execSelect( ) function defined in utils.php. I believe you can add 'CURLOPT_FOLLOWLOCATION => true' to the array of additional options to get the desired behavior.

I have updated the rds.php example with this CURL option being supplied. 8704b50c90432adb96e14c3618a66d7865c878e5

mrpatrickwest commented 10 years ago

Should be a default option. There's no reason for the s2s php code to have returned to it a 302 html page instead of the requested xml. It should be one of the default options.