[php-src] Issue #7909: Php curl doesnt redirect
| From: | ejgutierrez74 | Date: | Sat, 08 Jan 2022 19:26:49 +0000 |
| Subject: | [php-src] Issue #7909: Php curl doesnt redirect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238888@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7909
Comment Author: ejgutierrez74
Thanks for your help.
About secrets dont get worried is only for educational purpose. If necessary id delete the app or
regenerate keys.
Id try this solution:
👍 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
@damianwadley
In theory, or as far as i know, when you execute curl instruction in spotify api for example in
terminal, it redirects to the page needed. Instead if you tranlate the curl terminal command to
php-curl, as mentioned it gets stuck and doesnt redirect to the url. This step is mandatory for the
user to authorize the app work with the api, Ive tried with spotify and twitter, and in both cases
it doesnt redirect.
I have no clear if its problem of php or twitter or whatever api, but i think it could be a php-curl
because with curl in command line it works.
Id try the solution and report, in the next days