So, i try to update device using cnut, and get http session beetwen my computer and ptp device using wireshark. After reconstruct http session i see a strange thing:
Start update process.
POST /upload.cgi HTTP/1.1
Content-Length: 13974539
Content-Type: multipart/form-data; boundary=Lj4yT_zXN14-CRSXuCAU70rVVtrT6jIUgqjT-rvD
Host: 192.168.167.55
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.0.3 (java 1.5)
Cookie: Session_0a003ebb0d63=1560954714
Accept-Encoding: gzip
--Lj4yT_zXN14-CRSXuCAU70rVVtrT6jIUgqjT-rvD
Content-Disposition: form-data; name="Session"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1560954714
--Lj4yT_zXN14-CRSXuCAU70rVVtrT6jIUgqjT-rvD
Content-Disposition: form-data; name="file"; filename="upgrade.img"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
then transfer binary content (i think this is firmware)
bla - bla -bla
and finish
Content-Disposition: form-data; name="ok"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
upload
--Lj4yT_zXN14-CRSXuCAU70rVVtrT6jIUgqjT-rvD--
HTTP/1.1 200 OK
Server: InterNiche Technologies WebServer 2.0
Date: Wed, 14 Sep 2016 02:04:24 GMT
Connection: Keep-Alive
Keep-Alive: timeout=15, max=100
Content-type: text/html
Content-length: 382
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" class='no-js'>
<head>
<link rel="stylesheet" type="text/css" href="_canopy.css?mac_esn=0a003ebb0d63" media="screen" />
<body>
<h2>Uploaded File</h2><BR />Done receiving file.<BR />
</body>
</html>
GET /logoff.cgi HTTP/1.1
Host: 192.168.167.55
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.0.3 (java 1.5)
Cookie: Session_0a003ebb0d63=1560954714
Accept-Encoding: gzip
HTTP/1.1 401 <meta http-equiv='Refresh' content="0; URL=main.cgi?mac_esn=0a003ebb0d63" />Unauthorized <br /> You have timed out of your session, have been locked out due to too many unauthorized access attempts, or have exceeded your maximum allowed sessions. <br/> Please press <a href='index.htm?mac_esn=0a003ebb0d63'>here</a> to continue
Server: InterNiche Technologies WebServer 2.0
Set-Cookie: Session_0a003ebb0d63=0
Date: Wed, 14 Sep 2016 02:04:24 GMT
Connection: Keep-Alive
Keep-Alive: timeout=15, max=100
Content-type: text/html
Content-length: 328
<meta http-equiv='Refresh' content="0; URL=main.cgi?mac_esn=0a003ebb0d63" />Unauthorized <br /> You have timed out of your session, have been locked out due to too many unauthorized access attempts, or have exceeded your maximum allowed sessions. <br/> Please press <a href='index.htm?mac_esn=0a003ebb0d63'>here</a> to continue
If i not mistaken the problem in timeout in http server on ptp device. But all process spend about 1 minute from start to end.
I try to enlarge timeout for http, https, telnet in web interface (setup 30 minutes) but this not solved my problem.