0

Let's say that I make a get request to https://example1.com/?data=1234 Is there any way I can make the server respond with the response from https://example2.com/?data=1234? I'm a complete PHP newbie, and this is my first time using it for something actually meaningful.

EDIT: I don't want to redirect from https://example1.com/?data=1234 to https://example2.com/?data=1234. I want to pass the parameters from the original get request to example2.com, it responds, then I send back the response I got to the original get request user.

FOR EXAMPLE:

GET https://example1.com/api?value=123

RESPONSE: 12345

GET https://example2.com/api?value=123

RESPONSE: 12345

deceze
  • 510,633
  • 85
  • 743
  • 889
ClaytonTDM
  • 94
  • 1
  • 8

0 Answers0