При получении 302-го кода ответа и заголовка такого вида:
парсер переходит на https://price.ru:443//price.ru/perforatory/ вместо https://price.ru/perforatory/
Код:
location: //price.ru/perforatory/
Код:
Request:
GET /perforatory/?city=1 HTTP/1.1
Accept-Encoding: gzip, deflate
Connection: close
Host: price.ru
Referer: https://price.ru/perforatory/?city=1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Response:
302 Found
Body-Length: 0
HTTPVersion: 1.1
IP: 91.192.149.204
Proxy: noproxy
URI: https://price.ru/perforatory/?city=1
connection: close
content-length: 45
content-type: text/plain; charset=utf-8
date: Tue, 29 May 2018 15:32:48 GMT
location: https://price.ru:443//price.ru/perforatory/
p3p: policyref="/w3c/p3p.xml", CP="NON DSP COR CUR ADM DEV PSA PSD OUR UNR BUS UNI COM NAV INT DEM STA"
server: nginx
set-cookie: r=1; Max-Age=31536; Domain=.price.ru; Path=/; Expires=Wed, 30 May 2018 00:18:24 GMT,puid=W8CVzFsNcqAgN8yQA9TFAg==; expires=Wed, 29-May-19 15:32:48 GMT; domain=.price.ru; path=/
vary: Accept, Accept-Encoding
x-dns-prefetch-control: off
Redirect-Request:
GET //price.ru/perforatory/ HTTP/1.1
Accept-Encoding: gzip, deflate
Connection: close
Cookie: r=1; puid=W8CVzFsNcqAgN8yQA9TFAg==
Host: price.ru
Referer: https://price.ru:443//price.ru/perforatory/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Response:
301 Moved Permanently
Body-Length: 0
HTTPVersion: 1.1
IP: 91.192.149.204
Proxy: noproxy
URI: https://price.ru:443//price.ru/perforatory/
connection: close
content-length: 178
content-type: text/html
date: Tue, 29 May 2018 15:32:48 GMT
location: https://price.ru/price.ru/perforatory/
server: nginx
x-dns-prefetch-control: off
Redirect-Request:
GET /price.ru/perforatory/ HTTP/1.1
Accept-Encoding: gzip, deflate
Connection: close
Cookie: r=1; puid=W8CVzFsNcqAgN8yQA9TFAg==
Host: price.ru
Referer: https://price.ru/price.ru/perforatory/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Response:
404 Not Found
Body-Length: 0
HTTPVersion: 1.1
IP: 91.192.149.204
Proxy: noproxy
Time: 0.921260356903076
URI: https://price.ru/price.ru/perforatory/
Код:
eJxtU02P2jAQ/S8jDq2EYKnUS6SqYpFQW62AdukJcbDwhLrreFzboUVR/ntnTEhg
25vnzcd78+EGkoovcRMwYopQ7Brw+Q0FaCxVbROMwasQMYh7BytMRfFpu90w3kc0
kM4eOYdOGILRyE6j2T4S6QVl+6RszSG7dw8P+3a/HwPzcHJcUqiU8I38bNKR985n
dcItsbM0Fgd4ydZKVcI40iqheCdlLvTm7ST9kQpKa5MMOWUvDCJ/YP3uzC+RA444
lp/BYFwGqhhKmAsIeL6q28Eo28Al6pz79ZIDRalsxDFElrpULES/9piEQSUKay96
GG+A3NzaJzyhHcJy/cfaWM2znpec9LlL/H/I+p8abd/eLRWv5HdgDUOQpic6Xnt/
QfT9NFaCVBSwL9Axd3X5UDw62eywjLkfoDuBdwO/Bw/kSnNcd9dyjazdlq9x7RZU
eYui2NXW8sAjfhsWP4/dgMUYBL5OXmSKuztORDZ+eb5I9cHwYb0XgRXP6Jb1Ztp5
j/AjJR+L6ZRzDjgJ9dRj4HOT3ZynHw8mnT/MuOSBT/HIkLTT7vt/0/+u5ub3FE3L
m/gZN5cY6UUiGOOhRJ49FLP2L8uiR2s=