W
W
wixtransfer2020-11-11 06:20:11
PHP
wixtransfer, 2020-11-11 06:20:11

How to process a response to a request?

Hello! I send a request to another site using the GET method. I get a response in the form of {"successful": true}.

How do I process this request response and take the user back to my site?

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2020-11-11
@wixtransfer

$headers = get_headers('page to get response from');
In response, get an array that you need to take out and show, well, or whatever you need next.
file_get_contents for json response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question