PAN9420 HTTP-acces via curl

Hello,

 

browser-acces to my PAN9420 wors fine. Anybody out there whio knows how to use curl?

 

administorsAir2:~ wbantel$ curl -iv "192.168.0.163" -u "admin:admin" --digest
* Rebuilt URL to: 192.168.0.163/
*   Trying 192.168.0.163...
* TCP_NODELAY set
* Connected to 192.168.0.163 (192.168.0.163) port 80 (#0)
* Server auth using Digest with user 'admin'
> GET / HTTP/1.1
> Host: 192.168.0.163
> User-Agent: curl/7.51.0
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
HTTP/1.1 401 Unauthorized
< Allow: OPTIONS,GET,POST
Allow: OPTIONS,GET,POST
< Connection: keep-alive
Connection: keep-alive
< Date: Wed, 09 Jan 2019 13:13:14 +0000
Date: Wed, 09 Jan 2019 13:13:14 +0000
< Keep-Alive: timeout=8, max=65535
Keep-Alive: timeout=8, max=65535
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
< WWW-Authenticate: Digest realm="Webserver", nonce="dx37DGUZ/M4o9EFZyZmRAtnR", domain="/", algorithm="MD5", qop="auth"
WWW-Authenticate: Digest realm="Webserver", nonce="dx37DGUZ/M4o9EFZyZmRAtnR", domain="/", algorithm="MD5", qop="auth"

<
* Ignoring the response-body
* Curl_http_done: called premature == 0
* Connection #0 to host 192.168.0.163 left intact
* Issue another request to this URL: 'http://192.168.0.163/'
* Found bundle for host 192.168.0.163: 0x7fa542c0b8d0 [can pipeline]
* Re-using existing connection! (#0) with host 192.168.0.163
* Connected to 192.168.0.163 (192.168.0.163) port 80 (#0)
* Server auth using Digest with user 'admin'
> GET / HTTP/1.1
> Host: 192.168.0.163
> Authorization: Digest username="admin", realm="Webserver", nonce="dx37DGUZ/M4o9EFZyZmRAtnR", uri="/", cnonce="YmQ1ODUyNzkzNGY3MWFhNjU5MmQ1NWRhZmE0YTAwOTE=", nc=00000001, qop=auth, response="9bd022a3546a6e7dbbcd7b46d4b5888b", algorithm="MD5"
> User-Agent: curl/7.51.0
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
HTTP/1.1 401 Unauthorized
< Allow: OPTIONS,GET,POST
Allow: OPTIONS,GET,POST
< Connection: keep-alive
Connection: keep-alive
< Date: Wed, 09 Jan 2019 13:13:15 +0000
Date: Wed, 09 Jan 2019 13:13:15 +0000
< Keep-Alive: timeout=8, max=65535
Keep-Alive: timeout=8, max=65535
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
* Authentication problem. Ignoring this.
< WWW-Authenticate: Digest realm="Webserver", nonce="7z0zWGZ3CnEe1g+98N7JPOEQ", domain="/", algorithm="MD5", qop="auth"
WWW-Authenticate: Digest realm="Webserver", nonce="7z0zWGZ3CnEe1g+98N7JPOEQ", domain="/", algorithm="MD5", qop="auth"

<
<HTML><HEAD><TITLE>PAN9420 webserver</TITLE></HEAD><BODY><DIV ALIGN=CENTER><BR><FONT SIZE=+2>Authorization required</FONT><BR><FONT SIZE=-1>A C C E S S&nbsp;&nbsp;&nbsp;&nbsp;D E N I E D</FONT></DIV></BODY></HTML>
* Curl_http_done: called premature == 0
* Connection #0 to host 192.168.0.163 left intact

Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 1 yr agoLast active
  • 40Views
  • 1 Following