Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. Online Status Page on HTTPS ([email protected])
----------------------------------------------------------------------
Date: Wed, 16 Sep 2020 08:02:57 -0000
From: [email protected]
Subject: Online Status Page on HTTPS
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
I can't get connman online status check to work with my own status page.
What I've done so far:
I'm hosting my own status page for the online check feature on connman.
I've applied the patch that Slava linked on release 1.37
https://lists.ofono.org/hyperkitty/list/[email protected]/message/RO5OGNIYVPB24QAFVC5GEMLYKELHJQKD/
The page is identical to connman's status page and also responds in a similar
way.
Connman Response Header:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 16 Sep 2020 08:02:03 GMT
Content-Type: text/html
Content-Length: 45
Connection: close
X-ConnMan-Status: online
My Response Header:
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 15 Sep 2020 13:33:26 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 45
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-ConnMan-Status: online
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
I'm using HTTPS instead of HTTP.
Running connman with CONNMAN_WEB_DEBUG=1 I can see that it is struggling to
send a request one function gweb/gweb.c:process_send_buffer()
The log output that I get is:
connmand[2062]: WEB: ../connman-1.37/gweb/gweb.c:start_request() web 0x303b48
request /status.html from mypage.com
connmand[2062]: WEB: ../connman-1.37/gweb/gweb.c:process_send_buffer() web
0x303b48 status 3 bytes to write 99 bytes written 0
connmand[2062]: WEB: ../connman-1.37/gweb/gweb.c:process_send_buffer() web
0x303b48 status 3 bytes to write 99 bytes written 0
connmand[2062]: WEB: ../connman-1.37/gweb/gweb.c:process_send_buffer() web
0x303b48 status 3 bytes to write 99 bytes written 0
connmand[2062]: WEB: ../connman-1.37/gweb/gweb.c:process_send_buffer() web
0x303b48 status 3 bytes to write 99 bytes written 0
When setting it to connman's status page, the request is sent and I get the
headers:
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:start_request() web 0x1eed480
request /online/status.html from ipv4.connman.net
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:process_send_buffer() web
0x1eed480 status 1 bytes to write 111 bytes written 111
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
bytes read 206
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
[header] HTTP/1.1 200 OK
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
[header] Server: nginx
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
[header] Date: Tue, 15 Sep 2020 13:58:57 GMT
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
[header] Content-Type: text/html
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
[header] Content-Length: 45
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
[header] Connection: close
connmand[1992]: WEB: ../connman-1.37/gweb/gweb.c:received_data() web 0x1eed480
[header] X-ConnMan-Status: online
I'm missing something?
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]
------------------------------
End of connman Digest, Vol 59, Issue 14
***************************************