HTTP状态码 | 说明 |
---|---|
200 | 操作执行成功。 |
298 | 部分操作执行成功。 |
400 | 请求报文格式错误。 1. 上传时,上传表单格式有误; 2. URL触发图片处理时,处理参数不正确; 3. 资源管理操作或者持久化处理操作请求格式有误。 |
401 | 认证授权失败,可能是密钥信息不正确、数字签名错误或授权已超时。 |
404 | 资源不存在。(包括空间资源不存在、镜像源资源不存在) |
405 | 请求方式错误,非预期的请求方式。 |
406 | 上传的数据 CRC32 校验错。 |
419 | 用户账号被冻结。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dnsd = require('dnsd') | |
var http = require('http') | |
var datx = require('ipip-datx'); | |
var value; | |
dnsd.createServer(function(req, res) { | |
var key = JSON.stringify(req.question).split(",")[0].split(":")[1] | |
value = req.connection.remoteAddress.toString() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $# in | |
0) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
;; | |
1) | |
case $1 in | |
start) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "curl\tqboxrsctl" | |
#set variables | |
uploadFile="/home/jemy/Documents/qiniu.png" | |
uploadHost="upload.qiniu.com" | |
uploadToken="ELUs327kxVPJrGCXqWae9yioc0xYZyrIpbM6Wh6o:YEZCdEInhP2a-4Whb_D23nPl6b4=:eyJzY29wZSI6ImlmLXBibCIsImRlYWRsaW5lIjoxNDIyMDkxOTk3fQ==" | |
uploadBucket="if-pbl" | |
uploadTimes=1000 | |
curlPrefix="curl_pic" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gecho -e "curl\tqboxrsctl" | |
#set variables | |
uploadFile="/Users/jemy/Documents/qiniu.png" | |
uploadHost="up.qiniu.com" | |
uploadToken="ELUs327kxVPJrGCXqWae9yioc0xYZyrIpbM6Wh6o:YEZCdEInhP2a-4Whb_D23nPl6b4=:eyJzY29wZSI6ImlmLXBibCIsImRlYWRsaW5lIjoxNDIyMDkxOTk3fQ==" | |
uploadBucket="if-pbl" | |
uploadTimes=1000 | |
curlPrefix="curl_1277431" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import qiniu | |
from qiniu.services.storage import bucket as bucketop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package qiniu.demo; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.client.methods.HttpPost; | |
import org.apache.http.message.BasicNameValuePair; | |
import com.qiniu.api.auth.DigestAuthClient; |
NewerOlder