Вот полное содержание переменной с ответом (socks_result):
HTTP/1.1 302 Found
Date: Sat, 16 Apr 2016 11:13:17 GMT
Cache-Control: no-cache,no-store,max-age=0,must-revalidate
Location:
https://www.yandex.ru/
Expires: Sat, 16 Apr 2016 11:13:17 GMT
Last-Modified: Sat, 16 Apr 2016 11:13:17 GMT
P3P: policyref="/w3c/p3p.xml", CP="NON DSP ADM DEV PSD IVDo OUR IND STP PHY PRE NAV UNI"
Set-Cookie: yandexuid=4567314971460805197; Expires=Tue, 14-Apr-2026 11:13:17 GMT; Domain=.yandex.ru; Path=/
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Length: 0
HTTP/1.1 200 Ok
Date: Sat, 16 Apr 2016 11:13:18 GMT
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache,no-store,max-age=0,must-revalidate
Expires: Sat, 16 Apr 2016 11:13:18 GMT
Last-Modified: Sat, 16 Apr 2016 11:13:18 GMT
Content-Security-Policy: media-src 'self' yastatic.net kiks.yandex.ru; img-src 'self' data:
https://yastatic.net https://home.yastatic.net https://*.yandex.ru https://*.yandex.net https://*.tns-counter.ru yastatic.net home.yastatic.net yandex.ru *.yandex.ru *.yandex.net *.tns-counter.ru *.gemius.pl yandex.st; font-src 'self'
https://yastatic.net yastatic.net; connect-src 'self' wss://webasr.yandex.net wss://push.yandex.ru wss://portal-xiva.yandex.net
https://yastatic.net https://home.yastatic.net https://yandex.ru https://*.yandex.ru portal-xiva.yandex.net yastatic.net home.yastatic.net yandex.ru *.yandex.ru *.yandex.net yandex.st; script-src 'self' 'unsafe-inline' 'unsafe-eval'
https://suburban-widget.rasp.yandex.ru https://suburban-widget.rasp.yandex.net https://yastatic.net https://home.yastatic.net https://mc.yandex.ru https://pass.yandex.ru yastatic.net home.yastatic.net yandex.ru
www.yandex.ru mc.yandex.ru suggest.yandex.ru clck.yandex.ru awaps.yandex.net; default-src 'self' blob: wss://portal-xiva.yandex.net portal-xiva.yandex.net; style-src 'self' 'unsafe-inline'
https://yastatic.net https://home.yastatic.net yastatic.net home.yastatic.net; frame-src 'self'
https://yastatic.net https://yandex.ru https://*.yandex.ru wfarm.yandex.net yastatic.net yandex.ru *.yandex.ru awaps.yandex.net; report-uri
https://csp.yandex.net/csp?from=big.ru&showid=22887.21080.1460805198.11388&h=n63&yandexuid=4567314971460805197; object-src *.yandex.net yastatic.net kiks.yandex.ru awaps.yandex.net storage.mds.yandex.net;
P3P: policyref="/w3c/p3p.xml", CP="NON DSP ADM DEV PSD IVDo OUR IND STP PHY PRE NAV UNI"
X-Frame-Options: DENY
Content-Encoding: gzip
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Transfer-Encoding: chunked
�