Quote from: MoreBeer on October 23, 2013, 01:47:28 AM
Curl command to update block list
I am trying to do the same as you, but my obi100 returns an error message when I try it the following script, which is identical to yours except I simplified the blocking list. My first thought is that the special value fecc8d44 perhaps varies from one obi box to another. Can you please clarify? The value does not seem to be a MAC address or any such, so I am uncertain where it might come from.
#!/bin/sh
curl -v --digest --user admin:"$1" \
--user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" \
--cookie cookies.txt --cookie-jar cookies.txt \
--referer "
http://10.10.10.23/VS_1_X_FXO_1_.xml" \
obicmd-test.sh SECRETPASSWORD
* About to connect() to 10.10.10.23 port 80 (#0)
* Trying 10.10.10.23...
* Connected to 10.10.10.23 (10.10.10.23) port 80 (#0)
* Server auth using Digest with user 'admin'
> GET /result.html?fecc8d44=(1?800xx.|00):,ph HTTP/1.1
> User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
> Host: 10.10.10.23
> Accept: */*
> Referer:
http://10.10.10.23/VS_1_X_FXO_1_.xml>
< HTTP/1.1 401 Unauthorized
< Server: OBi110
< Cache-Control:must-revalidate, no-store, no-cache
< WWW-Authenticate: Digest realm="admin@OBi100", domain="/", qop="auth", algorithm="MD5", nonce="4498922c5c925ba0310b36be21776461", opaque="5f687f7b08fe16411e46378e7a057cea"
< Content-Type: text/html
< Content-Length: 105
< Connection: close
<
* Closing connection 0
...
...
-------------------------------------------------------------------------