Skip to content

Instantly share code, notes, and snippets.

@samuelhei
Created December 27, 2016 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelhei/c57078289c06e54f6aa7b9f530eb4641 to your computer and use it in GitHub Desktop.
Save samuelhei/c57078289c06e54f6aa7b9f530eb4641 to your computer and use it in GitHub Desktop.
{ request:
{ debugId: 1,
uri: 'https://www.okcoin.cn/api/v1/kline.do?symbol=btc_cny&type=1min&size=100',
method: 'GET',
headers:
{ host: 'www.okcoin.cn',
accept: 'application/json',
'content-type': 'application/json',
'content-length': 2 },
body: '{}' } }
{ response:
{ debugId: 1,
headers:
{ server: 'CloudFront',
date: 'Tue, 27 Dec 2016 19:30:25 GMT',
'content-type': 'text/html',
'content-length': '551',
connection: 'close',
'x-cache': 'Error from cloudfront',
via: '1.1 df5aa5d17dbc0643cb88a6bea4f59620.cloudfront.net (CloudFront)',
'x-amz-cf-id': '8FVXO6ny-tSgcam-4l2ypbG2ICHMh5SYrqjVatoB4s8Q9xW_4Disuw==' },
statusCode: 403,
body: '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n<TITLE>ERROR: The request could not be satisfied</TITLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The request could not be satisfied.</H2>\n<HR noshade size="1px">\nBad request.\n<BR clear="all">\n<HR noshade size="1px">\n<PRE>\nGenerated by cloudfront (CloudFront)\nRequest ID: 8FVXO6ny-tSgcam-4l2ypbG2ICHMh5SYrqjVatoB4s8Q9xW_4Disuw==\n</PRE>\n<ADDRESS>\n</ADDRESS>\n</BODY></HTML>' } }
STATUS CODE: 403
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment