You are on page 1of 2

// First request, sip mic newly started. Works fine.

magnusal@lnxmartiso> curl 'http://172.25.11.68/api/v1/login' -H 'Accept:


application/json, text/plain, */*' -v -X PUT -d
'{"login":"Admin","password":"2NSipMic"}' -c ~/tmp/cookies -k --noproxy "*"
* Hostname was NOT found in DNS cache
* Trying 172.25.11.68...
* Connected to 172.25.11.68 (172.25.11.68) port 80 (#0)
> PUT /api/v1/login HTTP/1.1
> User-Agent: curl/7.38.0
> Host: 172.25.11.68
> Accept: application/json, text/plain, */*
> Content-Length: 39
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 39 out of 39 bytes
< HTTP/1.1 200 OK
* Added cookie SID="3UneEl3UrA5XA1KA9gRbyP0P41OVqrsDctz641SeEl32TewLMN" for domain
172.25.11.68, path /api/v1/, expire 0
< Set-Cookie: SID=3UneEl3UrA5XA1KA9gRbyP0P41OVqrsDctz641SeEl32TewLMN
< Accept-Ranges: bytes
< Allow: GET, PUT, POST, OPTIONS
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, PUT, POST, OPTIONS
< Access-Control-Allow-Headers: Content-Type
< Access-Control-Allow-Credentials: true
< Content-Length: 41
< Connection: close
< Content-Type: application/json
< Cache-Control: no-cache, no-store, must-revalidate
< Pragma: no-cache
< Expires: 0
<
{"data":{"name":"Admin","timeout":600}}
* Closing connection 0

// Second request, a few minutes later. Hangs waiting for response. Aborted
manually after a while.
magnusal@lnxmartiso> curl 'http://172.25.11.68/api/v1/login' -H 'Accept:
application/json, text/plain, */*' -v -X PUT -d
'{"login":"Admin","password":"2NSipMic"}' -c ~/tmp/cookies -k --noproxy "*"
* Hostname was NOT found in DNS cache
* Trying 172.25.11.68...
* Connected to 172.25.11.68 (172.25.11.68) port 80 (#0)
> PUT /api/v1/login HTTP/1.1
> User-Agent: curl/7.38.0
> Host: 172.25.11.68
> Accept: application/json, text/plain, */*
> Content-Length: 39
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 39 out of 39 bytes
^C

// Third request. Also hangs waiting for response. Aborted manually after a while.
[130] magnusal@lnxmartiso> curl 'http://172.25.11.68/api/v1/login' -H 'Accept:
application/json, text/plain, */*' -v -X PUT -d
'{"login":"Admin","password":"2NSipMic"}' -c ~/tmp/cookies -k --noproxy "*"
* Hostname was NOT found in DNS cache
* Trying 172.25.11.68...
^C

You might also like