Logic Machine Forum
email with attachement gives image size 0 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: email with attachement gives image size 0 (/showthread.php?tid=1061)

Pages: 1 2


RE: email with attachement gives image size 0 - DGrandes - 13.03.2023

(15.08.2019, 14:07)admin Wrote: Log what output the server produces. Add this to the end of the script:
Code:
log(image, err, hdrs)

Hi!

I´m doing the same code with another IP camera (hikvision) that allow digest and digest/basic but doesn´t work:
This is the result:
[quote pid="13765" dateline="1565878076"]
Code:
log(image, err, hdrs)

[/quote]

Code:
* arg: 1
  * string: <!DOCTYPE html>
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: 401 -- Unauthorized</h2>
<p>Authentication Error</p>
</body>
</html>
<!DOCTYPE html>
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: 401 -- Unauthorized</h2>
<p>Authentication Error</p>
</body>
</html>

* arg: 2
  * number: 401
* arg: 3
  * table:
   ["server"]
    * string: webserver
   ["content-type"]
    * string: text/html
   ["connection"]
    * string: close
   ["date"]
    * string: Mon, 13 Mar 2023 10:37:01 GMT
   ["x-frame-options"]
    * string: SAMEORIGIN
   ["www-authenticate"]
    * string: Digest qop="auth", realm="IP Camera(F0849)", nonce="5a6d566c5a475a6d59324d365a474534596a67794d6d493d", stale="FALSE"
   ["content-length"]
    * string: 178

Thanks!


RE: email with attachement gives image size 0 - admin - 13.03.2023

If it allows basic auth then try using it first.