I use HTTPRequest to make settings on a router (Alcatel HH71). This works under Windows without errors.
With the Raspberry P400 and the current OS, HTTPRequest does not work, or the response from the router is not accepted.
Query of status code, error message and header with HTTPInfo after the HTTPRequest results:
Code: Select all
StatusCode: 0
ErrorMessage: Header without colon
Header:
HTTP/1.1 200 OK
Content-Type: application/json
x-content-type-options: nosniff
x-permitted-cross-domain-policies: master-only
Referrer-Policy: origin
X-Frame-Options: SAMEORIGIN
x-xss-protection: 1; mode=block
Content-Security-Policy: default-src 'self';style-src 'self' data:;img-src 'self' data:;font-src 'self' data:
The response is empty, although data should be present.
The complete header is returned under Windows:
Code: Select all
StatusCode: 200
ErrorMessage:
Header:
HTTP/1.1 200 OK
Content-Type: application/json
x-content-type-options: nosniff
x-permitted-cross-domain-policies: master-only
Referrer-Policy: origin
X-Frame-Options: SAMEORIGIN
x-xss-protection: 1; mode=block
Content-Security-Policy: default-src 'self';style-src 'self' data:;img-src 'self' data:;font-src 'self' data:
X-Content-Type-Options=nosniff
Pragma: no-cache
Cache-control: no-cache
Content-Length: 65
Apparently the response from the router is incorrect. Is there anything that can be done with the HTTPRequest, or is this a PB bug?
Peter