E
E
etterej2018-03-21 11:13:59
Yii
etterej, 2018-03-21 11:13:59

How to get a response from a blocked site?

I make a request:

$client = new Client();
        $response = $client->createRequest()
            ->setMethod('get')
            ->setUrl(self::URL)
            ->send();

An exception is thrown
'yii\httpclient\Exception' with message 'fopen(): SSL: Connection reset by peer'

The problem is that the site is blocked by Roskomnadzor. How can I get around this exception?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-03-21
@webinar

Contact through a proxy, contact from a server outside of Russia. Well, my favorite radical method is to emigrate to a country where there are no finished state structures. What does the very idea of ​​this institution seem to me to be quite sensible, but the people who work there and their choice of resources for blocking is something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question