% curl -v -i --basic -u "YOURNAME:PASSWORD" --data-urlencode "content=测试 curl, blabla" -d "source=Shell" "http://api.minicloud.com.cn/statuses/update.xml"
* About to connect() to api.minicloud.com.cn port 80 (#0)
* Trying 59.151.115.151... connected
* Connected to api.minicloud.com.cn (59.151.115.151) port 80 (#0)
* Server auth using Basic with user 's5unty'
> POST /statuses/update.xml HTTP/1.1
> Authorization: Basic czV1bnR5OmpJRXJFbmEzRQ==
> User-Agent: curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
> Host: api.minicloud.com.cn
> Accept: */*
> Content-Length: 58
> Content-Type: application/x-www-form-urlencoded
>
* Recv failure: Connection reset by peer
* Closing connection #0
curl: (56) Recv failure: Connection reset by peer
这是在墙外执行的,虽然 Recv failure
,但是内容 content
确实已经更新。墙内执行的结果是
% curl -v -i --basic -u "YOURNAME:PASSWORD" --data-urlencode "content=测试 curl, blabla" -d "source=Shell" "http://api.minicloud.com.cn/statuses/update.xml"
* About to connect() to api.minicloud.com.cn port 80 (#0)
* Trying 59.151.115.151... 连接超时
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
在我这里不用代理已打不开 digu.com,只要它同步功能还能用,即使被墙也没问题。friendfeed -> script -> digu