How to make a link to link1 inside php and get where the redirect occurred after clicking on link1

  • In PHP, you usually do not follow redirects, but issue them. Describe the situation in more detail. - D-side
  • For example, client authorization of the VC, after successful authorization, a transition to oauth.vk.com/blank.html takes place, at the same time the access key to the access_token API and other parameters are transmitted in the URL link fragment, so I need to access the access_token fragment and save it to the database - WinSide
  • To do this, you need control over the HTTP client, through which the user confirms authorization in the VC. And if this client is a user's browser, you will not have access to it from PHP. - D-side
  • @WinSide can’t do that - Alexey Shimansky
  • So which client are you logging in from PHP? - D-side

0