Using the above code I see this data in console:
-
Response {type: ‘opaque’, url: ‘’, redirected: false, status: 0, ok: false, …}
-
body: (…)
-
bodyUsed: false
-
headers: Headers {}
-
ok: false
-
redirected: false
-
status: 0
-
statusText: “”
-
type: “opaque”
-
url: “”
-
[[Prototype]]: Response
1. arrayBuffer: ƒ arrayBuffer()
2. blob: ƒ blob()
3. body: (...)
4. bodyUsed: (...)
5. clone: ƒ clone()
6. formData: ƒ formData()
7. headers: (...)
8. json: ƒ json()
9. ok: (...)
10. redirected: (...)
11. status: (...)
12. statusText: (...)
13. text: ƒ text()
1. length: 0
2. name: "text"
3. arguments: (...)
4. caller: (...)
5. [[Prototype]]: ƒ ()
6. [[Scopes]]: Scopes[0]
But see this in Wireshark for that fetch request:
GET /cgi-bin/aw_cam?cmd=QIF&res=1 HTTP/1.1
Host: Redacted
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Accept: /
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
HTTP/1.1 200 OK
Connection: close
Content-Type: text/plain
Set-Cookie: Session=0
Accept-Ranges: bytes
Cache-control: no-cache
Content-length: 6
Date: Thu, 08 Feb 2024 09:37:38 GMT
OIF:4D
I need to see OIF:4D as a useable response in the return, but Javascript don’t see the data. Any clues as to what I’m doing wrong. Relative newbie here, but I can’t help but think this is a simple problem to fix, I’m just not seeing how.
Please help.
