request header....

root@xxx# curl -i --get --include 'http://ali-barcode.showapi.com/barcode?code=6938166920785' -H 'Authorization:APPCODE xxxxxxxxxxx'
HTTP/1.1 200 OK
Server: Tengine
Date: Wed, 18 Jan 2017 07:58:44 GMT
Content-Type: application/json;charset=utf-8
Content-Length: 360
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: X-Requested-With, X-Sequence,X-Ca-Key,X-Ca-Secret,X-Ca-Version,X-Ca-Timestamp,X-Ca-Nonce,X-Ca-API-Key,X-Ca-Stage,X-Ca-Client-DeviceId,X-Ca-Client-AppId,X-Ca-Signature,X-Ca-Signature-Headers,X-Forwarded-For,X-Ca-Date,X-Ca-Request-Mode,Authorization,Content-Type,Accept,Accept-Ranges,Cache-Control,Range,Content-MD5
Access-Control-Max-Age: 172800
X-Ca-Request-Id: C6C69173-9961-4363-9CF7-1CB2148A7AC1
Access-Control-Allow-Credentials: true

{"showapi_res_code":0,"showapi_res_error":"","showapi_res_body":{"spec":"268ml","manuName":"新乡市和丝露饮品有限公司","ret_code":0,"price":"3.00","flag":true,"trademark":"醋美人生","img":"http://app2.showapi.com/img/barCode_img/2f7e639b-aa2f-4248-ae79-f0acc6ea56e6.jpg","code":"6938166920785","diskImgUrl":"","goodsName":"苹果醋","note":""}}

posted @ 2017-01-18 16:01  dunkbird  阅读(288)  评论(0编辑  收藏  举报