Re: Tellurian snabbklocka
Postat: 2020-12-03, 21:16
Problemet löst!!
räckte med att sätta citationstecken runt request URIn.
Bara ett problem återstår.
Klockan visar nu 06:43 men om jag hämtar klockans inställning så stämmer inte den med vad den visar.
>curl -G "https://telluriantrainsclocksappserver. ... o/settings"
{"name":"Demo","shouldRestart":false,"isElapsed":true,"isRunning":false,"startWeekday":"0","startTime":"06:00","speed":5.5,"durationHours":15,"pauseTime":"","pauseReason":"0","expectedResumeTime":"","showRealTimeWhenPaused":false,"overriddenElapsedTime":"","message":"","mode":"0","administratorPassword":"password","userPassword":""}
>
Jag har försökt uppdatera klockan inställning med får error från servern.
>curl -X POST "https://telluriantrainsclocksappserver. ... emo/Update" -H "Content-Type: application/json" -d '{"name":"Demo","shouldRestart":false,"isElapsed":true,"isRunning":false,"startWeekday":"0","startTime":"06:00","speed":5.5,"durationHours":15,"pauseTime":"","pauseReason":"0","expectedResumeTime":"","showRealTimeWhenPaused":false,"overriddenElapsedTime":"","message":"","mode":"0","administratorPassword":"password","userPassword":""}' -v
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 52.178.179.169...
* TCP_NODELAY set
* Connected to telluriantrainsclocksappserver.azurewebsites.net (52.178.179.169) port 443 (#0)
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 219 bytes...
* schannel: sent initial handshake data: sent 219 bytes
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: failed to receive handshake, need more data
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 4096
* schannel: encrypted data buffer: offset 4096 length 4096
* schannel: received incomplete message, need more data
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 1024
* schannel: encrypted data buffer: offset 5120 length 5120
* schannel: received incomplete message, need more data
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 489
* schannel: encrypted data buffer: offset 5609 length 6144
* schannel: sending next handshake data: sending 126 bytes...
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 51
* schannel: encrypted data buffer: offset 51 length 6144
* schannel: SSL/TLS handshake complete
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 3/3)
* schannel: stored credential handle in session cache
> POST /api/clocks/Demo/Update HTTP/1.1
> Host: telluriantrainsclocksappserver.azurewebsites.net
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 280
>
* upload completely sent off: 280 out of 280 bytes
* schannel: client wants to read 102400 bytes
* schannel: encdata_buffer resized 103424
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: encrypted data got 568
* schannel: encrypted data buffer: offset 568 length 103424
* schannel: decrypted data length: 539
* schannel: decrypted data added: 539
* schannel: decrypted data cached: offset 539 length 102400
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: decrypted data buffer: offset 539 length 102400
* schannel: schannel_recv cleanup
* schannel: decrypted data returned 539
* schannel: decrypted data buffer: offset 0 length 102400
< HTTP/1.1 400 Bad Request
< Server: Microsoft-IIS/10.0
< Strict-Transport-Security: max-age=2592000
< X-Powered-By: ASP.NET
< Set-Cookie: ARRAffinity=f5ecfb306e60620010bb76308e041dc8ca96ba5fca7967d574bfef606d2482e1;Path=/;HttpOnly;Secure;Domain=telluriantrainsclocksappserver.azurewebsites.net
< Set-Cookie: ARRAffinitySameSite=f5ecfb306e60620010bb76308e041dc8ca96ba5fca7967d574bfef606d2482e1;Path=/;HttpOnly;SameSite=None;Secure;Domain=telluriantrainsclocksappserver.azurewebsites.net
< Date: Thu, 03 Dec 2020 17:08:44 GMT
< Content-Length: 0
<
* Connection #0 to host telluriantrainsclocksappserver.azurewebsites.net left intact
>
och då spelar det ingen roll om jag anger user och password
https://telluriantrainsclocksappserver. ... d=password
eller utan
https://telluriantrainsclocksappserver. ... emo/Update
/mvh
Benny
räckte med att sätta citationstecken runt request URIn.
Bara ett problem återstår.
Klockan visar nu 06:43 men om jag hämtar klockans inställning så stämmer inte den med vad den visar.
>curl -G "https://telluriantrainsclocksappserver. ... o/settings"
{"name":"Demo","shouldRestart":false,"isElapsed":true,"isRunning":false,"startWeekday":"0","startTime":"06:00","speed":5.5,"durationHours":15,"pauseTime":"","pauseReason":"0","expectedResumeTime":"","showRealTimeWhenPaused":false,"overriddenElapsedTime":"","message":"","mode":"0","administratorPassword":"password","userPassword":""}
>
Jag har försökt uppdatera klockan inställning med får error från servern.
>curl -X POST "https://telluriantrainsclocksappserver. ... emo/Update" -H "Content-Type: application/json" -d '{"name":"Demo","shouldRestart":false,"isElapsed":true,"isRunning":false,"startWeekday":"0","startTime":"06:00","speed":5.5,"durationHours":15,"pauseTime":"","pauseReason":"0","expectedResumeTime":"","showRealTimeWhenPaused":false,"overriddenElapsedTime":"","message":"","mode":"0","administratorPassword":"password","userPassword":""}' -v
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 52.178.179.169...
* TCP_NODELAY set
* Connected to telluriantrainsclocksappserver.azurewebsites.net (52.178.179.169) port 443 (#0)
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 219 bytes...
* schannel: sent initial handshake data: sent 219 bytes
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: failed to receive handshake, need more data
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 4096
* schannel: encrypted data buffer: offset 4096 length 4096
* schannel: received incomplete message, need more data
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 1024
* schannel: encrypted data buffer: offset 5120 length 5120
* schannel: received incomplete message, need more data
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 489
* schannel: encrypted data buffer: offset 5609 length 6144
* schannel: sending next handshake data: sending 126 bytes...
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 2/3)
* schannel: encrypted data got 51
* schannel: encrypted data buffer: offset 51 length 6144
* schannel: SSL/TLS handshake complete
* schannel: SSL/TLS connection with telluriantrainsclocksappserver.azurewebsites.net port 443 (step 3/3)
* schannel: stored credential handle in session cache
> POST /api/clocks/Demo/Update HTTP/1.1
> Host: telluriantrainsclocksappserver.azurewebsites.net
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 280
>
* upload completely sent off: 280 out of 280 bytes
* schannel: client wants to read 102400 bytes
* schannel: encdata_buffer resized 103424
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: encrypted data got 568
* schannel: encrypted data buffer: offset 568 length 103424
* schannel: decrypted data length: 539
* schannel: decrypted data added: 539
* schannel: decrypted data cached: offset 539 length 102400
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: decrypted data buffer: offset 539 length 102400
* schannel: schannel_recv cleanup
* schannel: decrypted data returned 539
* schannel: decrypted data buffer: offset 0 length 102400
< HTTP/1.1 400 Bad Request
< Server: Microsoft-IIS/10.0
< Strict-Transport-Security: max-age=2592000
< X-Powered-By: ASP.NET
< Set-Cookie: ARRAffinity=f5ecfb306e60620010bb76308e041dc8ca96ba5fca7967d574bfef606d2482e1;Path=/;HttpOnly;Secure;Domain=telluriantrainsclocksappserver.azurewebsites.net
< Set-Cookie: ARRAffinitySameSite=f5ecfb306e60620010bb76308e041dc8ca96ba5fca7967d574bfef606d2482e1;Path=/;HttpOnly;SameSite=None;Secure;Domain=telluriantrainsclocksappserver.azurewebsites.net
< Date: Thu, 03 Dec 2020 17:08:44 GMT
< Content-Length: 0
<
* Connection #0 to host telluriantrainsclocksappserver.azurewebsites.net left intact
>
och då spelar det ingen roll om jag anger user och password
https://telluriantrainsclocksappserver. ... d=password
eller utan
https://telluriantrainsclocksappserver. ... emo/Update
/mvh
Benny