История изменений
Исправление Sahas, (текущая версия) :
А вот что приходит из Linux (useragent я переопределил уже некоторое время назад, поэтому он такой же, как с MacOS)
http://172.16.0.1:8000/
POST / HTTP/1.1
Host: 172.16.0.1:8000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 71
auth_user=justin&auth_pass=justin&redirurl=&accept=Giri%C5%9F+%2F+Enter
HTTP/1.1 302 Found
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Location: http://askahotels.com
Content-Type: text/html
Content-Length: 0
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
----------------------------------------------------------
http://askahotels.com/
GET / HTTP/1.1
Host: askahotels.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
HTTP/1.1 302 Found
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Location: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Content-Type: text/html
Content-Length: 0
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
----------------------------------------------------------
http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
GET /index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F HTTP/1.1
Host: 172.16.0.1:8000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
HTTP/1.1 200 OK
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html
Transfer-Encoding: chunked
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
Вроде, все заголовки практически одинаковые, но в MacOS при редиректе возвращается код 200 (и cookie), а в Gentoo - код 302 и выкидывает обратно на страницу логина
Исправление Sahas, :
А вот что приходит из Linux (useragent я переопределил уже некоторое время назад, поэтому он такой же, как с MacOS)
http://172.16.0.1:8000/
POST / HTTP/1.1
Host: 172.16.0.1:8000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 71
auth_user=justin&auth_pass=justin&redirurl=&accept=Giri%C5%9F+%2F+Enter
HTTP/1.1 302 Found
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Location: http://askahotels.com
Content-Type: text/html
Content-Length: 0
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
----------------------------------------------------------
http://askahotels.com/
GET / HTTP/1.1
Host: askahotels.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
HTTP/1.1 302 Found
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Location: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Content-Type: text/html
Content-Length: 0
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
----------------------------------------------------------
http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
GET /index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F HTTP/1.1
Host: 172.16.0.1:8000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
HTTP/1.1 200 OK
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html
Transfer-Encoding: chunked
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
. Вроде, все заголовки практически одинаковые, но в MacOS при редиректе возвращается код 200 (и cookie), а в Gento - код 302 и выкидывает обратно на страницу логина
Исходная версия Sahas, :
А вот что приходит из Linux (useragent я переопределил уже некоторое время назад, поэтому он такой же, как с MacOS)
http://172.16.0.1:8000/
POST / HTTP/1.1
Host: 172.16.0.1:8000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 71
auth_user=justin&auth_pass=justin&redirurl=&accept=Giri%C5%9F+%2F+Enter
HTTP/1.1 302 Found
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Location: http://askahotels.com
Content-Type: text/html
Content-Length: 0
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
----------------------------------------------------------
http://askahotels.com/
GET / HTTP/1.1
Host: askahotels.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
HTTP/1.1 302 Found
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Location: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Content-Type: text/html
Content-Length: 0
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35
----------------------------------------------------------
http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
GET /index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F HTTP/1.1
Host: 172.16.0.1:8000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://172.16.0.1:8000/index.php?zone=captiveportal&redirurl=http%3A%2F%2Faskahotels.com%2F
Connection: keep-alive
HTTP/1.1 200 OK
Expires: Fri, 08 Aug 2014 16:28:07 GMT, 0
Cache-Control: max-age=180000, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html
Transfer-Encoding: chunked
Date: Wed, 06 Aug 2014 14:28:07 GMT
Server: lighttpd/1.4.35