[php-src] Issue #7909: Php curl doesnt redirect
| From: | ejgutierrez74 | Date: | Sun, 09 Jan 2022 15:10:25 +0000 |
| Subject: | [php-src] Issue #7909: Php curl doesnt redirect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238908@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7909
Comment Author: ejgutierrez74
> Then I refer back to what I said earlier:
>
> > If you want the user to follow the OAuth process then yes: you must redirect _the user_ to
> > that URL.
So i have to put the header location and in your opinion is right ? dont have php-curl at time
making that request should redirect to the redirect_url, as redirect_url is passed as a parameter.
In my opinion and as for ive read, the curl makes a request, that brings you to a page whre you
authorise or not the app to use your credentials in twitter, spotify access.... If you execute the
code without header location, this never happens and though you dont get the tokens to continue.
I havent seen any tutorial that says that after executing curl, you have to execute an instruction
to go to that page....as in real terms you are repeating the same request twice...with same
endpoint, params, and headers.