Bug #2889
closedwstunnel works on mobile unless use auth
Description
Hello. I am using 1.4.49 with with wstunnel between a backend process and java web page. It works wonderfully well on desktop and mobile browsers. However, it does not work on mobile if I add auth to limit user access. When I do this I am prompted for login/password and then immediately see "Connection closed without Close control frame". There is no issue on desktop browsers when using auth.
The web server is running on linux centos 7.4, tested on desktop browsers Chrome, Safari and and Firefox, all ok. Mobile devices tried are Safari and Chrome on iOS 11.3.1, both fail as above. I have attached the conf file. As written it works only on desktops. Commenting out the auth properties it works everywhere.
Comments and advice welcome. Thank you.
Elwood Downey
Steward Observatory, Tucson AZ
Files
Updated by gstrauss over 6 years ago
This does not sound like a bug in lighttpd if it works with desktops but not with mobile.
Is anything in the lighttpd error log for the failed requests?
Please create a dummy (and temporary) username/password and capture the request/response headers for both good and bad request/responses and compare them. If you used a dummy username/password, then please also share the captured request/response headers. Perhaps one of the mobile browsers or the proxies that serve your mobile (from your mobile provider) is changing the case of your username? Capture request/response headers with:
debug.log-request-header = "enable" debug.log-request-header-on-error = "enable" debug.log-response-header = "enable"
Updated by pidloop over 6 years ago
I will do that tomorrow, thanks for the idea. But I can say we have no problems using auth on mobile for our pages that do not use web sockets, so it is not a matter of creds getting mangled.
Updated by gstrauss over 6 years ago
Let's see if lighttpd is sending Connection: close with the 401 Unauthorized and prompt for username and password, and, if so, if the client is not properly sending a new request, with the now-provided credentials.
Updated by gstrauss over 6 years ago
Years ago, earlier versions of Chrome apparently did not include Authorization header in the websocket HTTP request.
https://bugs.chromium.org/p/chromium/issues/detail?id=123862
Please try using some additional mobile devices (maybe Android-based?) to complement the iOS-based ones you are testing.
Non-authoritative discussion from 2013: https://github.com/theturtle32/WebSocket-Node/issues/73
The Authorization header was not explicitly mentioned in the WebSocket spec until Hybi-13.
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-13#page-21
Updated by pidloop over 6 years ago
Good morning. I added the three debug lines to lighttpd.conf as per gstrauss and restarted. I then connected from a desktop Chrome browser at 09:40:53 (which worked) followed by an attempt from iOS Chrome at 09:41:17 (which failed). Below is the result. I suspect folks more familiar with this than I can tell more easily if it contains any useful clues.
Regarding the comment about the possible effect of my mobile provider, note I am not using a cell connection. I am using a wifi connection on my iOS ipad connected to the exact same access point as my desktop.
Thanks for your help.
2018-05-22 09:40:45: (server.c.1423) server started (lighttpd/1.4.49) 2018-05-22 09:40:53: (request.c.445) fd: 7 request-len: 613 \nGET /actuator.html HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nCache-Control: max-age=0\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nIf-None-Match: "2942394637"\r\nIf-Modified-Since: Mon, 21 May 2018 16:38:03 GMT\r\n\r\n 2018-05-22 09:40:53: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nVary: Accept-Encoding\r\nContent-Type: text/html\r\nLast-Modified: Mon, 21 May 2018 16:38:03 GMT\r\nETag: "2942394637"\r\nDate: Tue, 22 May 2018 16:40:53 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:40:54: (request.c.445) fd: 7 request-len: 561 \nGET /law.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/actuator.html\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nIf-None-Match: "1810379717"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\n\r\n 2018-05-22 09:40:54: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "1810379717"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:40:54 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:40:54: (request.c.445) fd: 7 request-len: 617 \nGET /jquery/images/ui-bg_gloss-wave_16_121212_500x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/jquery/jquery-ui.min.css\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nIf-None-Match: "2821701935"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\n\r\n 2018-05-22 09:40:54: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "2821701935"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:40:54 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:40:54: (request.c.445) fd: 8 request-len: 619 \nGET /jquery/images/ui-bg_highlight-soft_35_adadad_1x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/jquery/jquery-ui.min.css\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nIf-None-Match: "3560236746"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\n\r\n 2018-05-22 09:40:54: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "3560236746"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:40:54 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:40:54: (request.c.445) fd: 8 request-len: 606 \nGET /jquery/images/ui-icons_666666_256x240.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/jquery/jquery-ui.min.css\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nIf-None-Match: "1691143720"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\n\r\n 2018-05-22 09:40:54: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "1691143720"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:40:54 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:40:54: (request.c.445) fd: 9 request-len: 627 \nGET /indi-websocket HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: Upgrade\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUpgrade: websocket\r\nOrigin: http://maps.as.arizona.edu:8080\r\nSec-WebSocket-Version: 13\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nSec-WebSocket-Key: VOPl75JzRrPnZOURivVRBw==\r\nSec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n\r\n 2018-05-22 09:40:54: (response.c.122) Response-Header: \nHTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nSec-WebSocket-Accept: IwSPmUfNXaY3Wxib+B0Z8ORLcGE=\r\nConnection: upgrade\r\nDate: Tue, 22 May 2018 16:40:54 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:17: (request.c.445) fd: 7 request-len: 482 \nGET /ao-operate.html HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\n\r\n 2018-05-22 09:41:17: (response.c.122) Response-Header: \nHTTP/1.1 200 OK\r\nVary: Accept-Encoding\r\nContent-Encoding: gzip\r\nLast-Modified: Mon, 21 May 2018 16:47:05 GMT\r\nETag: "2871124110"\r\nContent-Type: text/html\r\nContent-Length: 7766\r\nDate: Tue, 22 May 2018 16:41:17 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:17: (request.c.445) fd: 7 request-len: 624 \nGET /jquery/images/ui-bg_highlight-hard_15_888888_1x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "18263754"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/ao-operate.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 09:41:17: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "18263754"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:41:17 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:17: (request.c.445) fd: 7 request-len: 626 \nGET /jquery/images/ui-bg_highlight-soft_35_adadad_1x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "3560236746"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/ao-operate.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 09:41:17: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "3560236746"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:41:17 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:17: (request.c.445) fd: 11 request-len: 621 \nGET /jquery/images/ui-bg_inset-soft_15_121212_1x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "173139640"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/ao-operate.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 09:41:17: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "173139640"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:41:17 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:17: (request.c.445) fd: 7 request-len: 624 \nGET /jquery/images/ui-bg_gloss-wave_16_121212_500x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "2821701935"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/ao-operate.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 09:41:17: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "2821701935"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:41:17 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:17: (request.c.445) fd: 7 request-len: 613 \nGET /jquery/images/ui-icons_666666_256x240.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "1691143720"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/ao-operate.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 09:41:17: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "1691143720"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 16:41:17 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:17: (request.c.445) fd: 8 request-len: 498 \nGET /indi-websocket HTTP/1.1\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nHost: maps.as.arizona.edu:8080\r\nOrigin: http://maps.as.arizona.edu:8080\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nSec-WebSocket-Key: 8qZMjrd/xTDnPFUWat7aow==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Extensions: x-webkit-deflate-frame\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\n\r\n 2018-05-22 09:41:17: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 16:41:17 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 09:41:21: (request.c.445) fd: 8 request-len: 299 \nGET /favicon.ico HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9\r\n\r\n 2018-05-22 09:41:21: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 16:41:21 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n
Updated by pidloop over 6 years ago
I checked back to see if there were any new comments and happened to notice I opened a different page on each device! They behave the same regarding this issue but of course it is not a proper test. So here it is again, this time both displaying actuator.html. Same conditions as before: connected at 14:43:19 fine from desktop, failed to connect at 14:44:07 from iPad. Sorry for the noise.
2018-05-22 14:43:19: (request.c.445) fd: 7 request-len: 613 \nGET /actuator.html HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nCache-Control: max-age=0\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nIf-None-Match: "2942394637"\r\nIf-Modified-Since: Mon, 21 May 2018 16:38:03 GMT\r\n\r\n 2018-05-22 14:43:19: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nVary: Accept-Encoding\r\nContent-Type: text/html\r\nLast-Modified: Mon, 21 May 2018 16:38:03 GMT\r\nETag: "2942394637"\r\nDate: Tue, 22 May 2018 21:43:19 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:20: (request.c.445) fd: 7 request-len: 561 \nGET /law.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nIf-None-Match: "1810379717"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/actuator.html\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\n\r\n 2018-05-22 14:43:20: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "1810379717"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:20 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:20: (request.c.445) fd: 7 request-len: 617 \nGET /jquery/images/ui-bg_gloss-wave_16_121212_500x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nIf-None-Match: "2821701935"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/jquery/jquery-ui.min.css\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\n\r\n 2018-05-22 14:43:20: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "2821701935"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:20 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:20: (request.c.445) fd: 8 request-len: 619 \nGET /jquery/images/ui-bg_highlight-soft_35_adadad_1x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nIf-None-Match: "3560236746"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/jquery/jquery-ui.min.css\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\n\r\n 2018-05-22 14:43:20: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "3560236746"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:20 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:20: (request.c.445) fd: 8 request-len: 606 \nGET /jquery/images/ui-icons_666666_256x240.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nIf-None-Match: "1691143720"\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept: image/webp,image/apng,image/*,*/*;q=0.8\r\nReferer: http://maps.as.arizona.edu:8080/jquery/jquery-ui.min.css\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\n\r\n 2018-05-22 14:43:20: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "1691143720"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:20 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:20: (request.c.445) fd: 13 request-len: 627 \nGET /indi-websocket HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: Upgrade\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nUpgrade: websocket\r\nOrigin: http://maps.as.arizona.edu:8080\r\nSec-WebSocket-Version: 13\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9,gl;q=0.8\r\nCookie: _ga=GA1.2.112015242.1442847298\r\nSec-WebSocket-Key: hVB3ZflHTSccn1WuypfVDg==\r\nSec-WebSocket-Extensions: permessage-deflate; client_max_window_bits\r\n\r\n 2018-05-22 14:43:20: (response.c.122) Response-Header: \nHTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nSec-WebSocket-Accept: 89ETlgbujdCqqs6rbtLXez6oX3A=\r\nConnection: upgrade\r\nDate: Tue, 22 May 2018 21:43:20 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:29: (request.c.445) fd: 15 request-len: 480 \nGET /actuator.html HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\n\r\n 2018-05-22 14:43:29: (response.c.122) Response-Header: \nHTTP/1.1 200 OK\r\nVary: Accept-Encoding\r\nContent-Encoding: gzip\r\nLast-Modified: Mon, 21 May 2018 16:38:03 GMT\r\nETag: "2942394637"\r\nContent-Type: text/html\r\nContent-Length: 18063\r\nDate: Tue, 22 May 2018 21:43:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:29: (request.c.445) fd: 15 request-len: 577 \nGET /law.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "1810379717"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/actuator.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 14:43:29: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "1810379717"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:29: (request.c.445) fd: 15 request-len: 624 \nGET /jquery/images/ui-bg_highlight-soft_35_adadad_1x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "3560236746"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/actuator.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 14:43:29: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "3560236746"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:29: (request.c.445) fd: 17 request-len: 622 \nGET /jquery/images/ui-bg_gloss-wave_16_121212_500x100.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "2821701935"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/actuator.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 14:43:29: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "2821701935"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:29: (request.c.445) fd: 15 request-len: 611 \nGET /jquery/images/ui-icons_666666_256x240.png HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept-Encoding: gzip, deflate\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nConnection: keep-alive\r\nIf-None-Match: "1691143720"\r\nAccept: image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5\r\nIf-Modified-Since: Wed, 11 Apr 2018 22:45:39 GMT\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\nReferer: http://maps.as.arizona.edu:8080/actuator.html\r\nAccept-Language: en-us\r\n\r\n 2018-05-22 14:43:29: (response.c.122) Response-Header: \nHTTP/1.1 304 Not Modified\r\nContent-Type: image/png\r\nAccept-Ranges: bytes\r\nETag: "1691143720"\r\nLast-Modified: Wed, 11 Apr 2018 22:45:39 GMT\r\nDate: Tue, 22 May 2018 21:43:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:29: (request.c.445) fd: 16 request-len: 498 \nGET /indi-websocket HTTP/1.1\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nHost: maps.as.arizona.edu:8080\r\nOrigin: http://maps.as.arizona.edu:8080\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nSec-WebSocket-Key: 0RlK61TFluo76jgucIMKaQ==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Extensions: x-webkit-deflate-frame\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\n\r\n 2018-05-22 14:43:29: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 21:43:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:43:29: (request.c.445) fd: 18 request-len: 299 \nGET /favicon.ico HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9\r\n\r\n 2018-05-22 14:43:29: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 21:43:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:44:07: (request.c.445) fd: 8 request-len: 299 \nGET /favicon.ico HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9\r\n\r\n 2018-05-22 14:44:07: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 21:44:07 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:44:07: (request.c.445) fd: 7 request-len: 498 \nGET /indi-websocket HTTP/1.1\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nHost: maps.as.arizona.edu:8080\r\nOrigin: http://maps.as.arizona.edu:8080\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nSec-WebSocket-Key: /AcDsI1AikMnxW5RJVw0DQ==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Extensions: x-webkit-deflate-frame\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\n\r\n 2018-05-22 14:44:07: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 21:44:07 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:44:14: (request.c.445) fd: 7 request-len: 433 \nGET /actuator.html HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUpgrade-Insecure-Requests: 1\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\n\r\n 2018-05-22 14:44:14: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 21:44:14 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:44:28: (request.c.445) fd: 7 request-len: 480 \nGET /actuator.html HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nConnection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\nAuthorization: Basic bXJNQVBTOmhlbGxvIE1BUFM=\r\n\r\n 2018-05-22 14:44:28: (response.c.122) Response-Header: \nHTTP/1.1 200 OK\r\nVary: Accept-Encoding\r\nContent-Encoding: gzip\r\nLast-Modified: Mon, 21 May 2018 16:38:03 GMT\r\nETag: "2942394637"\r\nContent-Type: text/html\r\nContent-Length: 18063\r\nDate: Tue, 22 May 2018 21:44:28 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:44:29: (request.c.445) fd: 8 request-len: 498 \nGET /indi-websocket HTTP/1.1\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nHost: maps.as.arizona.edu:8080\r\nOrigin: http://maps.as.arizona.edu:8080\r\nCookie: _ga=GA1.2.2957075.1520193219\r\nPragma: no-cache\r\nCache-Control: no-cache\r\nSec-WebSocket-Key: A+odSXp5FdC/np/dpCS1jg==\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Extensions: x-webkit-deflate-frame\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\n\r\n 2018-05-22 14:44:29: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 21:44:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n 2018-05-22 14:44:29: (request.c.445) fd: 9 request-len: 299 \nGET /favicon.ico HTTP/1.1\r\nHost: maps.as.arizona.edu:8080\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (iPad; CPU OS 11_3_1 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/66.0.3359.122 Mobile/15E302 Safari/604.1\r\nAccept-Encoding: gzip, deflate\r\nAccept-Language: en-US,en;q=0.9\r\n\r\n 2018-05-22 14:44:29: (response.c.122) Response-Header: \nHTTP/1.1 401 Unauthorized\r\nWWW-Authenticate: Basic realm="MAPS website", charset="UTF-8"\r\nContent-Type: text/html\r\nContent-Length: 351\r\nDate: Tue, 22 May 2018 21:44:29 GMT\r\nServer: lighttpd/1.4.49\r\n\r\n
Updated by gstrauss over 6 years ago
- Status changed from New to Invalid
The iPad is not sending Authorization request header in your trace for websocket or favicon.ico requests. The iPad did send Authorization header once, with: GET /actuator.html HTTP/1.1
Sorry, this is a known bug in Safari:
https://bugs.webkit.org/show_bug.cgi?id=80362
Also this was an issue with Chrome on Android up until about a year ago.
https://bugs.chromium.org/p/chromium/issues/detail?id=433608
https://bugs.chromium.org/p/chromium/issues/detail?id=123862
Some of this discussion might give you ideas for workarounds:
https://stackoverflow.com/questions/4361173/http-headers-in-websockets-client-api/41521871#41521871
Also available in: Atom