A
A
alex_ak12021-01-18 14:19:04
MODX
alex_ak1, 2021-01-18 14:19:04

How to make proxy for url in modx?

There is a site on modx. Is it possible to make requests to site.ru/folder/folder2?param=param go to another site, for example, to innersite.ru/folder2?param=param or at least to localhost/folder2?param=
param other hosting - or also a regro or my home web server with a white IP.

UPD: I mean not a redirect, but a repeated request - modx creates a request to another site, receives a response and gives it to the client.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2021-01-18
@alex_ak1

Curl or PHP file_get_contents. For convenience, there is a Guzzle HTTP client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question