[Libwebsockets] http 403

Kun Zhao kzhdev at gmail.com
Thu Mar 21 18:59:17 CET 2019


Hi Andy,

I'm trying to get a JSON from https://www.bitmex.com/api/v1/instrument REST
API. I tried my own libwebsockets app and libwebsockets_test_client, both
of them are failed with 403. However, I can use curl to get the JSON
without any problems. How do I figure out what is wrong with libwebsockets?

Attached are the detailed log of curl and libwebsockets_test_client.
Hopefully, that will give you more information.

Thanks,
Kun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20190321/8008beb1/attachment-0001.html>
-------------- next part --------------
[2019/03/21 12:09:53:6828] NOTICE: libwebsockets test client - license LGPL2.1+SLE
[2019/03/21 12:09:53:6832] NOTICE: (C) Copyright 2010-2018 Andy Green <andy at warmcat.com>
[2019/03/21 12:09:53:6836] NOTICE:  Using SSL
[2019/03/21 12:09:53:6839] NOTICE:  Selfsigned certs allowed
[2019/03/21 12:09:53:6842] NOTICE:  Skipping peer cert hostname check
[2019/03/21 12:09:53:7183] NOTICE: created client ssl context for default
[2019/03/21 12:09:53:7187] NOTICE: using https mode (non-ws)
[2019/03/21 12:09:53:7190] NOTICE: http: connecting
[2019/03/21 12:09:54:5574] PARSER: WSI_TOKEN_NAME_PART 'H' 0x48 (role=0x10000000) wsi->lextable_pos=0
[2019/03/21 12:09:54:5579] PARSER: WSI_TOKEN_NAME_PART 'T' 0x54 (role=0x10000000) wsi->lextable_pos=102
[2019/03/21 12:09:54:5582] PARSER: WSI_TOKEN_NAME_PART 'T' 0x54 (role=0x10000000) wsi->lextable_pos=296
[2019/03/21 12:09:54:5585] PARSER: WSI_TOKEN_NAME_PART 'P' 0x50 (role=0x10000000) wsi->lextable_pos=297
[2019/03/21 12:09:54:5588] PARSER: WSI_TOKEN_NAME_PART '/' 0x2F (role=0x10000000) wsi->lextable_pos=298
[2019/03/21 12:09:54:5591] PARSER: WSI_TOKEN_NAME_PART '1' 0x31 (role=0x10000000) wsi->lextable_pos=305
[2019/03/21 12:09:54:5594] PARSER: WSI_TOKEN_NAME_PART '.' 0x2E (role=0x10000000) wsi->lextable_pos=306
[2019/03/21 12:09:54:5597] PARSER: WSI_TOKEN_NAME_PART '1' 0x31 (role=0x10000000) wsi->lextable_pos=307
[2019/03/21 12:09:54:5600] PARSER: WSI_TOKEN_NAME_PART ' ' 0x20 (role=0x10000000) wsi->lextable_pos=314
[2019/03/21 12:09:54:5602] PARSER: known hdr 15
[2019/03/21 12:09:54:5605] PARSER: WSI_TOK_(15) '4'
[2019/03/21 12:09:54:5606] PARSER: WSI_TOK_(15) '0'
[2019/03/21 12:09:54:5606] PARSER: WSI_TOK_(15) '3'
[2019/03/21 12:09:54:5609] PARSER: WSI_TOK_(15) ' '
[2019/03/21 12:09:54:5610] PARSER: WSI_TOK_(15) 'F'
[2019/03/21 12:09:54:5610] PARSER: WSI_TOK_(15) 'o'
[2019/03/21 12:09:54:5610] PARSER: WSI_TOK_(15) 'r'
[2019/03/21 12:09:54:5611] PARSER: WSI_TOK_(15) 'b'
[2019/03/21 12:09:54:5611] PARSER: WSI_TOK_(15) 'i'
[2019/03/21 12:09:54:5611] PARSER: WSI_TOK_(15) 'd'
[2019/03/21 12:09:54:5611] PARSER: WSI_TOK_(15) 'd'
[2019/03/21 12:09:54:5612] PARSER: WSI_TOK_(15) 'e'
[2019/03/21 12:09:54:5612] PARSER: WSI_TOK_(15) 'n'
'2019/03/21 12:09:54:5612] PARSER: WSI_TOK_(15) '
[2019/03/21 12:09:54:5612] PARSER: *
[2019/03/21 12:09:54:5613] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
'
[2019/03/21 12:09:54:5613] PARSER: WSI_TOKEN_NAME_PART 'D' 0x44 (role=0x10000000) wsi->lextable_pos=0
[2019/03/21 12:09:54:5613] PARSER: WSI_TOKEN_NAME_PART 'a' 0x61 (role=0x10000000) wsi->lextable_pos=567
[2019/03/21 12:09:54:5614] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=574
[2019/03/21 12:09:54:5630] PARSER: WSI_TOKEN_NAME_PART 'e' 0x65 (role=0x10000000) wsi->lextable_pos=575
[2019/03/21 12:09:54:5631] PARSER: WSI_TOKEN_NAME_PART ':' 0x3A (role=0x10000000) wsi->lextable_pos=576
[2019/03/21 12:09:54:5631] PARSER: known hdr 29
[2019/03/21 12:09:54:5632] PARSER: WSI_TOK_(29) ' '
[2019/03/21 12:09:54:5632] PARSER: WSI_TOK_(29) 'T'
[2019/03/21 12:09:54:5632] PARSER: WSI_TOK_(29) 'h'
[2019/03/21 12:09:54:5633] PARSER: WSI_TOK_(29) 'u'
[2019/03/21 12:09:54:5633] PARSER: WSI_TOK_(29) ','
[2019/03/21 12:09:54:5633] PARSER: WSI_TOK_(29) ' '
[2019/03/21 12:09:54:5634] PARSER: WSI_TOK_(29) '2'
[2019/03/21 12:09:54:5634] PARSER: WSI_TOK_(29) '1'
[2019/03/21 12:09:54:5634] PARSER: WSI_TOK_(29) ' '
[2019/03/21 12:09:54:5634] PARSER: WSI_TOK_(29) 'M'
[2019/03/21 12:09:54:5635] PARSER: WSI_TOK_(29) 'a'
[2019/03/21 12:09:54:5635] PARSER: WSI_TOK_(29) 'r'
[2019/03/21 12:09:54:5635] PARSER: WSI_TOK_(29) ' '
[2019/03/21 12:09:54:5635] PARSER: WSI_TOK_(29) '2'
[2019/03/21 12:09:54:5636] PARSER: WSI_TOK_(29) '0'
[2019/03/21 12:09:54:5636] PARSER: WSI_TOK_(29) '1'
[2019/03/21 12:09:54:5636] PARSER: WSI_TOK_(29) '9'
[2019/03/21 12:09:54:5636] PARSER: WSI_TOK_(29) ' '
[2019/03/21 12:09:54:5637] PARSER: WSI_TOK_(29) '1'
[2019/03/21 12:09:54:5637] PARSER: WSI_TOK_(29) '7'
[2019/03/21 12:09:54:5637] PARSER: WSI_TOK_(29) ':'
[2019/03/21 12:09:54:5637] PARSER: WSI_TOK_(29) '0'
[2019/03/21 12:09:54:5638] PARSER: WSI_TOK_(29) '9'
[2019/03/21 12:09:54:5638] PARSER: WSI_TOK_(29) ':'
[2019/03/21 12:09:54:5638] PARSER: WSI_TOK_(29) '5'
[2019/03/21 12:09:54:5639] PARSER: WSI_TOK_(29) '4'
[2019/03/21 12:09:54:5639] PARSER: WSI_TOK_(29) ' '
[2019/03/21 12:09:54:5639] PARSER: WSI_TOK_(29) 'G'
[2019/03/21 12:09:54:5639] PARSER: WSI_TOK_(29) 'M'
[2019/03/21 12:09:54:5640] PARSER: WSI_TOK_(29) 'T'
'2019/03/21 12:09:54:5640] PARSER: WSI_TOK_(29) '
[2019/03/21 12:09:54:5640] PARSER: *
[2019/03/21 12:09:54:5640] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
'
[2019/03/21 12:09:54:5641] PARSER: WSI_TOKEN_NAME_PART 'C' 0x43 (role=0x10000000) wsi->lextable_pos=0
[2019/03/21 12:09:54:5641] PARSER: WSI_TOKEN_NAME_PART 'o' 0x6F (role=0x10000000) wsi->lextable_pos=117
[2019/03/21 12:09:54:5641] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role=0x10000000) wsi->lextable_pos=124
[2019/03/21 12:09:54:5642] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=131
[2019/03/21 12:09:54:5642] PARSER: WSI_TOKEN_NAME_PART 'e' 0x65 (role=0x10000000) wsi->lextable_pos=524
[2019/03/21 12:09:54:5642] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role=0x10000000) wsi->lextable_pos=525
[2019/03/21 12:09:54:5642] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=526
[2019/03/21 12:09:54:5643] PARSER: WSI_TOKEN_NAME_PART '-' 0x2D (role=0x10000000) wsi->lextable_pos=527
[2019/03/21 12:09:54:5643] PARSER: WSI_TOKEN_NAME_PART 'L' 0x4C (role=0x10000000) wsi->lextable_pos=528
[2019/03/21 12:09:54:5643] PARSER: WSI_TOKEN_NAME_PART 'e' 0x65 (role=0x10000000) wsi->lextable_pos=544
[2019/03/21 12:09:54:5643] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role=0x10000000) wsi->lextable_pos=554
[2019/03/21 12:09:54:5644] PARSER: WSI_TOKEN_NAME_PART 'g' 0x67 (role=0x10000000) wsi->lextable_pos=555
[2019/03/21 12:09:54:5644] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=556
[2019/03/21 12:09:54:5644] PARSER: WSI_TOKEN_NAME_PART 'h' 0x68 (role=0x10000000) wsi->lextable_pos=557
[2019/03/21 12:09:54:5645] PARSER: WSI_TOKEN_NAME_PART ':' 0x3A (role=0x10000000) wsi->lextable_pos=558
[2019/03/21 12:09:54:5645] PARSER: known hdr 27
[2019/03/21 12:09:54:5645] PARSER: WSI_TOK_(27) ' '
[2019/03/21 12:09:54:5645] PARSER: WSI_TOK_(27) '0'
'2019/03/21 12:09:54:5646] PARSER: WSI_TOK_(27) '
[2019/03/21 12:09:54:5646] PARSER: *
[2019/03/21 12:09:54:5646] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
'
[2019/03/21 12:09:54:5646] PARSER: WSI_TOKEN_NAME_PART 'C' 0x43 (role=0x10000000) wsi->lextable_pos=0
[2019/03/21 12:09:54:5647] PARSER: WSI_TOKEN_NAME_PART 'o' 0x6F (role=0x10000000) wsi->lextable_pos=117
[2019/03/21 12:09:54:5647] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role=0x10000000) wsi->lextable_pos=124
[2019/03/21 12:09:54:5647] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role=0x10000000) wsi->lextable_pos=131
[2019/03/21 12:09:54:5647] PARSER: WSI_TOKEN_NAME_PART 'e' 0x65 (role=0x10000000) wsi->lextable_pos=138
[2019/03/21 12:09:54:5648] PARSER: WSI_TOKEN_NAME_PART 'c' 0x63 (role=0x10000000) wsi->lextable_pos=139
[2019/03/21 12:09:54:5648] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=140
[2019/03/21 12:09:54:5648] PARSER: WSI_TOKEN_NAME_PART 'i' 0x69 (role=0x10000000) wsi->lextable_pos=141
[2019/03/21 12:09:54:5648] PARSER: WSI_TOKEN_NAME_PART 'o' 0x6F (role=0x10000000) wsi->lextable_pos=148
[2019/03/21 12:09:54:5649] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role=0x10000000) wsi->lextable_pos=149
[2019/03/21 12:09:54:5649] PARSER: WSI_TOKEN_NAME_PART ':' 0x3A (role=0x10000000) wsi->lextable_pos=150
[2019/03/21 12:09:54:5649] PARSER: known hdr 4
[2019/03/21 12:09:54:5650] PARSER: WSI_TOK_(4) ' '
[2019/03/21 12:09:54:5650] PARSER: WSI_TOK_(4) 'c'
[2019/03/21 12:09:54:5651] PARSER: WSI_TOK_(4) 'l'
[2019/03/21 12:09:54:5651] PARSER: WSI_TOK_(4) 'o'
[2019/03/21 12:09:54:5651] PARSER: WSI_TOK_(4) 's'
[2019/03/21 12:09:54:5651] PARSER: WSI_TOK_(4) 'e'
'2019/03/21 12:09:54:5652] PARSER: WSI_TOK_(4) '
[2019/03/21 12:09:54:5652] PARSER: *
[2019/03/21 12:09:54:5653] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
'
[2019/03/21 12:09:54:5654] PARSER: WSI_TOKEN_NAME_PART 'S' 0x53 (role=0x10000000) wsi->lextable_pos=0
[2019/03/21 12:09:54:5654] PARSER: WSI_TOKEN_NAME_PART 'e' 0x65 (role=0x10000000) wsi->lextable_pos=178
[2019/03/21 12:09:54:5654] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=185
[2019/03/21 12:09:54:5655] PARSER: WSI_TOKEN_NAME_PART '-' 0x2D (role=0x10000000) wsi->lextable_pos=967
[2019/03/21 12:09:54:5655] PARSER: WSI_TOKEN_NAME_PART 'C' 0x43 (role=0x10000000) wsi->lextable_pos=968
[2019/03/21 12:09:54:5655] PARSER: WSI_TOKEN_NAME_PART 'o' 0x6F (role=0x10000000) wsi->lextable_pos=969
[2019/03/21 12:09:54:5656] PARSER: WSI_TOKEN_NAME_PART 'o' 0x6F (role=0x10000000) wsi->lextable_pos=970
[2019/03/21 12:09:54:5656] PARSER: WSI_TOKEN_NAME_PART 'k' 0x6B (role=0x10000000) wsi->lextable_pos=971
[2019/03/21 12:09:54:5656] PARSER: WSI_TOKEN_NAME_PART 'i' 0x69 (role=0x10000000) wsi->lextable_pos=972
[2019/03/21 12:09:54:5656] PARSER: WSI_TOKEN_NAME_PART 'e' 0x65 (role=0x10000000) wsi->lextable_pos=973
[2019/03/21 12:09:54:5657] PARSER: WSI_TOKEN_NAME_PART ':' 0x3A (role=0x10000000) wsi->lextable_pos=974
[2019/03/21 12:09:54:5657] PARSER: known hdr 66
[2019/03/21 12:09:54:5657] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5658] PARSER: WSI_TOK_(66) 'A'
[2019/03/21 12:09:54:5658] PARSER: WSI_TOK_(66) 'W'
[2019/03/21 12:09:54:5658] PARSER: WSI_TOK_(66) 'S'
[2019/03/21 12:09:54:5658] PARSER: WSI_TOK_(66) 'A'
[2019/03/21 12:09:54:5659] PARSER: WSI_TOK_(66) 'L'
[2019/03/21 12:09:54:5659] PARSER: WSI_TOK_(66) 'B'
[2019/03/21 12:09:54:5659] PARSER: WSI_TOK_(66) '='
[2019/03/21 12:09:54:5659] PARSER: WSI_TOK_(66) 'y'
[2019/03/21 12:09:54:5660] PARSER: WSI_TOK_(66) 'U'
[2019/03/21 12:09:54:5660] PARSER: WSI_TOK_(66) '4'
[2019/03/21 12:09:54:5660] PARSER: WSI_TOK_(66) '/'
[2019/03/21 12:09:54:5660] PARSER: WSI_TOK_(66) 'q'
[2019/03/21 12:09:54:5661] PARSER: WSI_TOK_(66) 'F'
[2019/03/21 12:09:54:5661] PARSER: WSI_TOK_(66) '/'
[2019/03/21 12:09:54:5661] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5661] PARSER: WSI_TOK_(66) 'U'
[2019/03/21 12:09:54:5662] PARSER: WSI_TOK_(66) 'H'
[2019/03/21 12:09:54:5662] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5662] PARSER: WSI_TOK_(66) 'd'
[2019/03/21 12:09:54:5662] PARSER: WSI_TOK_(66) 'M'
[2019/03/21 12:09:54:5663] PARSER: WSI_TOK_(66) 'v'
[2019/03/21 12:09:54:5663] PARSER: WSI_TOK_(66) 'F'
[2019/03/21 12:09:54:5663] PARSER: WSI_TOK_(66) 'q'
[2019/03/21 12:09:54:5663] PARSER: WSI_TOK_(66) '8'
[2019/03/21 12:09:54:5664] PARSER: WSI_TOK_(66) 'h'
[2019/03/21 12:09:54:5664] PARSER: WSI_TOK_(66) 'd'
[2019/03/21 12:09:54:5664] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5665] PARSER: WSI_TOK_(66) 'u'
[2019/03/21 12:09:54:5665] PARSER: WSI_TOK_(66) 'm'
[2019/03/21 12:09:54:5665] PARSER: WSI_TOK_(66) 'k'
[2019/03/21 12:09:54:5665] PARSER: WSI_TOK_(66) 'v'
[2019/03/21 12:09:54:5666] PARSER: WSI_TOK_(66) 'c'
[2019/03/21 12:09:54:5666] PARSER: WSI_TOK_(66) 'M'
[2019/03/21 12:09:54:5666] PARSER: WSI_TOK_(66) 's'
[2019/03/21 12:09:54:5666] PARSER: WSI_TOK_(66) 'C'
[2019/03/21 12:09:54:5667] PARSER: WSI_TOK_(66) 'U'
[2019/03/21 12:09:54:5667] PARSER: WSI_TOK_(66) '2'
[2019/03/21 12:09:54:5667] PARSER: WSI_TOK_(66) 'z'
[2019/03/21 12:09:54:5667] PARSER: WSI_TOK_(66) '2'
[2019/03/21 12:09:54:5668] PARSER: WSI_TOK_(66) 'Z'
[2019/03/21 12:09:54:5668] PARSER: WSI_TOK_(66) 'l'
[2019/03/21 12:09:54:5668] PARSER: WSI_TOK_(66) 'b'
[2019/03/21 12:09:54:5668] PARSER: WSI_TOK_(66) '6'
[2019/03/21 12:09:54:5669] PARSER: WSI_TOK_(66) '9'
[2019/03/21 12:09:54:5669] PARSER: WSI_TOK_(66) 'y'
[2019/03/21 12:09:54:5669] PARSER: WSI_TOK_(66) 'w'
[2019/03/21 12:09:54:5669] PARSER: WSI_TOK_(66) 'P'
[2019/03/21 12:09:54:5670] PARSER: WSI_TOK_(66) 'f'
[2019/03/21 12:09:54:5670] PARSER: WSI_TOK_(66) 'j'
[2019/03/21 12:09:54:5670] PARSER: WSI_TOK_(66) '8'
[2019/03/21 12:09:54:5670] PARSER: WSI_TOK_(66) 'U'
[2019/03/21 12:09:54:5671] PARSER: WSI_TOK_(66) '9'
[2019/03/21 12:09:54:5671] PARSER: WSI_TOK_(66) '/'
[2019/03/21 12:09:54:5671] PARSER: WSI_TOK_(66) 's'
[2019/03/21 12:09:54:5671] PARSER: WSI_TOK_(66) 'o'
[2019/03/21 12:09:54:5672] PARSER: WSI_TOK_(66) 'Q'
[2019/03/21 12:09:54:5672] PARSER: WSI_TOK_(66) '9'
[2019/03/21 12:09:54:5672] PARSER: WSI_TOK_(66) 'd'
[2019/03/21 12:09:54:5672] PARSER: WSI_TOK_(66) 'a'
[2019/03/21 12:09:54:5673] PARSER: WSI_TOK_(66) '5'
[2019/03/21 12:09:54:5673] PARSER: WSI_TOK_(66) 'd'
[2019/03/21 12:09:54:5674] PARSER: WSI_TOK_(66) 'r'
[2019/03/21 12:09:54:5674] PARSER: WSI_TOK_(66) 'r'
[2019/03/21 12:09:54:5674] PARSER: WSI_TOK_(66) 'u'
[2019/03/21 12:09:54:5674] PARSER: WSI_TOK_(66) '3'
[2019/03/21 12:09:54:5675] PARSER: WSI_TOK_(66) '/'
[2019/03/21 12:09:54:5675] PARSER: WSI_TOK_(66) 'A'
[2019/03/21 12:09:54:5675] PARSER: WSI_TOK_(66) 'O'
[2019/03/21 12:09:54:5675] PARSER: WSI_TOK_(66) 'Y'
[2019/03/21 12:09:54:5676] PARSER: WSI_TOK_(66) 'l'
[2019/03/21 12:09:54:5676] PARSER: WSI_TOK_(66) 'j'
[2019/03/21 12:09:54:5676] PARSER: WSI_TOK_(66) 'n'
[2019/03/21 12:09:54:5676] PARSER: WSI_TOK_(66) 'r'
[2019/03/21 12:09:54:5678] PARSER: WSI_TOK_(66) 'M'
[2019/03/21 12:09:54:5678] PARSER: WSI_TOK_(66) 'G'
[2019/03/21 12:09:54:5678] PARSER: WSI_TOK_(66) 'v'
[2019/03/21 12:09:54:5679] PARSER: WSI_TOK_(66) 'N'
[2019/03/21 12:09:54:5679] PARSER: WSI_TOK_(66) '7'
[2019/03/21 12:09:54:5679] PARSER: WSI_TOK_(66) 'k'
[2019/03/21 12:09:54:5680] PARSER: WSI_TOK_(66) 'f'
[2019/03/21 12:09:54:5680] PARSER: WSI_TOK_(66) 'd'
[2019/03/21 12:09:54:5680] PARSER: WSI_TOK_(66) 'c'
[2019/03/21 12:09:54:5681] PARSER: WSI_TOK_(66) 'S'
[2019/03/21 12:09:54:5681] PARSER: WSI_TOK_(66) 'g'
[2019/03/21 12:09:54:5681] PARSER: WSI_TOK_(66) '9'
[2019/03/21 12:09:54:5681] PARSER: WSI_TOK_(66) 'u'
[2019/03/21 12:09:54:5682] PARSER: WSI_TOK_(66) '7'
[2019/03/21 12:09:54:5683] PARSER: WSI_TOK_(66) 'P'
[2019/03/21 12:09:54:5683] PARSER: WSI_TOK_(66) 'k'
[2019/03/21 12:09:54:5683] PARSER: WSI_TOK_(66) 'z'
[2019/03/21 12:09:54:5684] PARSER: WSI_TOK_(66) 'F'
[2019/03/21 12:09:54:5684] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5684] PARSER: WSI_TOK_(66) 'j'
[2019/03/21 12:09:54:5684] PARSER: WSI_TOK_(66) 'q'
[2019/03/21 12:09:54:5685] PARSER: WSI_TOK_(66) 'i'
[2019/03/21 12:09:54:5685] PARSER: WSI_TOK_(66) 'e'
[2019/03/21 12:09:54:5685] PARSER: WSI_TOK_(66) 'c'
[2019/03/21 12:09:54:5685] PARSER: WSI_TOK_(66) 'd'
[2019/03/21 12:09:54:5686] PARSER: WSI_TOK_(66) 'z'
[2019/03/21 12:09:54:5686] PARSER: WSI_TOK_(66) 'j'
[2019/03/21 12:09:54:5686] PARSER: WSI_TOK_(66) 'i'
[2019/03/21 12:09:54:5686] PARSER: WSI_TOK_(66) '3'
[2019/03/21 12:09:54:5687] PARSER: WSI_TOK_(66) 'm'
[2019/03/21 12:09:54:5687] PARSER: WSI_TOK_(66) 'n'
[2019/03/21 12:09:54:5687] PARSER: WSI_TOK_(66) 's'
[2019/03/21 12:09:54:5687] PARSER: WSI_TOK_(66) '9'
[2019/03/21 12:09:54:5688] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5688] PARSER: WSI_TOK_(66) 'I'
[2019/03/21 12:09:54:5688] PARSER: WSI_TOK_(66) 'u'
[2019/03/21 12:09:54:5688] PARSER: WSI_TOK_(66) 'b'
[2019/03/21 12:09:54:5689] PARSER: WSI_TOK_(66) '5'
[2019/03/21 12:09:54:5689] PARSER: WSI_TOK_(66) 'H'
[2019/03/21 12:09:54:5689] PARSER: WSI_TOK_(66) '1'
[2019/03/21 12:09:54:5689] PARSER: WSI_TOK_(66) 'W'
[2019/03/21 12:09:54:5690] PARSER: WSI_TOK_(66) 'i'
[2019/03/21 12:09:54:5690] PARSER: WSI_TOK_(66) 'f'
[2019/03/21 12:09:54:5691] PARSER: WSI_TOK_(66) '1'
[2019/03/21 12:09:54:5691] PARSER: WSI_TOK_(66) 'Z'
[2019/03/21 12:09:54:5691] PARSER: WSI_TOK_(66) 'q'
[2019/03/21 12:09:54:5691] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5692] PARSER: WSI_TOK_(66) 't'
[2019/03/21 12:09:54:5692] PARSER: WSI_TOK_(66) 'A'
[2019/03/21 12:09:54:5692] PARSER: WSI_TOK_(66) '8'
[2019/03/21 12:09:54:5692] PARSER: WSI_TOK_(66) 'M'
[2019/03/21 12:09:54:5693] PARSER: WSI_TOK_(66) 'h'
[2019/03/21 12:09:54:5693] PARSER: WSI_TOK_(66) 'c'
[2019/03/21 12:09:54:5693] PARSER: WSI_TOK_(66) '7'
[2019/03/21 12:09:54:5693] PARSER: WSI_TOK_(66) 'z'
[2019/03/21 12:09:54:5694] PARSER: WSI_TOK_(66) 'G'
[2019/03/21 12:09:54:5694] PARSER: WSI_TOK_(66) '/'
[2019/03/21 12:09:54:5694] PARSER: WSI_TOK_(66) '/'
[2019/03/21 12:09:54:5694] PARSER: WSI_TOK_(66) ';'
[2019/03/21 12:09:54:5695] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5695] PARSER: WSI_TOK_(66) 'E'
[2019/03/21 12:09:54:5695] PARSER: WSI_TOK_(66) 'x'
[2019/03/21 12:09:54:5696] PARSER: WSI_TOK_(66) 'p'
[2019/03/21 12:09:54:5696] PARSER: WSI_TOK_(66) 'i'
[2019/03/21 12:09:54:5696] PARSER: WSI_TOK_(66) 'r'
[2019/03/21 12:09:54:5696] PARSER: WSI_TOK_(66) 'e'
[2019/03/21 12:09:54:5697] PARSER: WSI_TOK_(66) 's'
[2019/03/21 12:09:54:5697] PARSER: WSI_TOK_(66) '='
[2019/03/21 12:09:54:5697] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5698] PARSER: WSI_TOK_(66) 'h'
[2019/03/21 12:09:54:5698] PARSER: WSI_TOK_(66) 'u'
[2019/03/21 12:09:54:5698] PARSER: WSI_TOK_(66) ','
[2019/03/21 12:09:54:5699] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5699] PARSER: WSI_TOK_(66) '2'
[2019/03/21 12:09:54:5699] PARSER: WSI_TOK_(66) '8'
[2019/03/21 12:09:54:5699] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5700] PARSER: WSI_TOK_(66) 'M'
[2019/03/21 12:09:54:5700] PARSER: WSI_TOK_(66) 'a'
[2019/03/21 12:09:54:5700] PARSER: WSI_TOK_(66) 'r'
[2019/03/21 12:09:54:5700] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5701] PARSER: WSI_TOK_(66) '2'
[2019/03/21 12:09:54:5701] PARSER: WSI_TOK_(66) '0'
[2019/03/21 12:09:54:5701] PARSER: WSI_TOK_(66) '1'
[2019/03/21 12:09:54:5701] PARSER: WSI_TOK_(66) '9'
[2019/03/21 12:09:54:5702] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5702] PARSER: WSI_TOK_(66) '1'
[2019/03/21 12:09:54:5702] PARSER: WSI_TOK_(66) '7'
[2019/03/21 12:09:54:5702] PARSER: WSI_TOK_(66) ':'
[2019/03/21 12:09:54:5703] PARSER: WSI_TOK_(66) '0'
[2019/03/21 12:09:54:5703] PARSER: WSI_TOK_(66) '9'
[2019/03/21 12:09:54:5703] PARSER: WSI_TOK_(66) ':'
[2019/03/21 12:09:54:5703] PARSER: WSI_TOK_(66) '5'
[2019/03/21 12:09:54:5704] PARSER: WSI_TOK_(66) '4'
[2019/03/21 12:09:54:5704] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5704] PARSER: WSI_TOK_(66) 'G'
[2019/03/21 12:09:54:5704] PARSER: WSI_TOK_(66) 'M'
[2019/03/21 12:09:54:5705] PARSER: WSI_TOK_(66) 'T'
[2019/03/21 12:09:54:5705] PARSER: WSI_TOK_(66) ';'
[2019/03/21 12:09:54:5705] PARSER: WSI_TOK_(66) ' '
[2019/03/21 12:09:54:5705] PARSER: WSI_TOK_(66) 'P'
[2019/03/21 12:09:54:5706] PARSER: WSI_TOK_(66) 'a'
[2019/03/21 12:09:54:5706] PARSER: WSI_TOK_(66) 't'
[2019/03/21 12:09:54:5706] PARSER: WSI_TOK_(66) 'h'
[2019/03/21 12:09:54:5706] PARSER: WSI_TOK_(66) '='
[2019/03/21 12:09:54:5707] PARSER: WSI_TOK_(66) '/'
'2019/03/21 12:09:54:5707] PARSER: WSI_TOK_(66) '
[2019/03/21 12:09:54:5707] PARSER: *
[2019/03/21 12:09:54:5707] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
'
[2019/03/21 12:09:54:5708] PARSER: WSI_TOKEN_NAME_PART 'S' 0x53 (role=0x10000000) wsi->lextable_pos=0
[2019/03/21 12:09:54:5708] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=178
[2019/03/21 12:09:54:5708] PARSER: WSI_TOKEN_NAME_PART 'r' 0x72 (role=0x10000000) wsi->lextable_pos=977
[2019/03/21 12:09:54:5709] PARSER: WSI_TOKEN_NAME_PART 'i' 0x69 (role=0x10000000) wsi->lextable_pos=978
[2019/03/21 12:09:54:5709] PARSER: WSI_TOKEN_NAME_PART 'c' 0x63 (role=0x10000000) wsi->lextable_pos=979
[2019/03/21 12:09:54:5709] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=980
[2019/03/21 12:09:54:5709] PARSER: WSI_TOKEN_NAME_PART '-' 0x2D (role=0x10000000) wsi->lextable_pos=981
[2019/03/21 12:09:54:5710] PARSER: WSI_TOKEN_NAME_PART 'T' 0x54 (role=0x10000000) wsi->lextable_pos=982
[2019/03/21 12:09:54:5710] PARSER: WSI_TOKEN_NAME_PART 'r' 0x72 (role=0x10000000) wsi->lextable_pos=983
[2019/03/21 12:09:54:5710] PARSER: WSI_TOKEN_NAME_PART 'a' 0x61 (role=0x10000000) wsi->lextable_pos=984
[2019/03/21 12:09:54:5710] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role=0x10000000) wsi->lextable_pos=985
[2019/03/21 12:09:54:5711] PARSER: WSI_TOKEN_NAME_PART 's' 0x73 (role=0x10000000) wsi->lextable_pos=986
[2019/03/21 12:09:54:5711] PARSER: WSI_TOKEN_NAME_PART 'p' 0x70 (role=0x10000000) wsi->lextable_pos=987
[2019/03/21 12:09:54:5711] PARSER: WSI_TOKEN_NAME_PART 'o' 0x6F (role=0x10000000) wsi->lextable_pos=988
[2019/03/21 12:09:54:5712] PARSER: WSI_TOKEN_NAME_PART 'r' 0x72 (role=0x10000000) wsi->lextable_pos=989
[2019/03/21 12:09:54:5712] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=990
[2019/03/21 12:09:54:5712] PARSER: WSI_TOKEN_NAME_PART '-' 0x2D (role=0x10000000) wsi->lextable_pos=991
[2019/03/21 12:09:54:5712] PARSER: WSI_TOKEN_NAME_PART 'S' 0x53 (role=0x10000000) wsi->lextable_pos=992
[2019/03/21 12:09:54:5713] PARSER: WSI_TOKEN_NAME_PART 'e' 0x65 (role=0x10000000) wsi->lextable_pos=993
[2019/03/21 12:09:54:5713] PARSER: WSI_TOKEN_NAME_PART 'c' 0x63 (role=0x10000000) wsi->lextable_pos=994
[2019/03/21 12:09:54:5713] PARSER: WSI_TOKEN_NAME_PART 'u' 0x75 (role=0x10000000) wsi->lextable_pos=995
[2019/03/21 12:09:54:5714] PARSER: WSI_TOKEN_NAME_PART 'r' 0x72 (role=0x10000000) wsi->lextable_pos=996
[2019/03/21 12:09:54:5714] PARSER: WSI_TOKEN_NAME_PART 'i' 0x69 (role=0x10000000) wsi->lextable_pos=997
[2019/03/21 12:09:54:5714] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role=0x10000000) wsi->lextable_pos=998
[2019/03/21 12:09:54:5715] PARSER: WSI_TOKEN_NAME_PART 'y' 0x79 (role=0x10000000) wsi->lextable_pos=999
[2019/03/21 12:09:54:5715] PARSER: WSI_TOKEN_NAME_PART ':' 0x3A (role=0x10000000) wsi->lextable_pos=1000
[2019/03/21 12:09:54:5715] PARSER: known hdr 67
[2019/03/21 12:09:54:5715] PARSER: WSI_TOK_(67) ' '
[2019/03/21 12:09:54:5716] PARSER: WSI_TOK_(67) 'm'
[2019/03/21 12:09:54:5716] PARSER: WSI_TOK_(67) 'a'
[2019/03/21 12:09:54:5716] PARSER: WSI_TOK_(67) 'x'
[2019/03/21 12:09:54:5717] PARSER: WSI_TOK_(67) '-'
[2019/03/21 12:09:54:5717] PARSER: WSI_TOK_(67) 'a'
[2019/03/21 12:09:54:5717] PARSER: WSI_TOK_(67) 'g'
[2019/03/21 12:09:54:5717] PARSER: WSI_TOK_(67) 'e'
[2019/03/21 12:09:54:5718] PARSER: WSI_TOK_(67) '='
[2019/03/21 12:09:54:5718] PARSER: WSI_TOK_(67) '3'
[2019/03/21 12:09:54:5718] PARSER: WSI_TOK_(67) '1'
[2019/03/21 12:09:54:5718] PARSER: WSI_TOK_(67) '5'
[2019/03/21 12:09:54:5719] PARSER: WSI_TOK_(67) '3'
[2019/03/21 12:09:54:5719] PARSER: WSI_TOK_(67) '6'
[2019/03/21 12:09:54:5719] PARSER: WSI_TOK_(67) '0'
[2019/03/21 12:09:54:5719] PARSER: WSI_TOK_(67) '0'
[2019/03/21 12:09:54:5774] PARSER: WSI_TOK_(67) '0'
[2019/03/21 12:09:54:5774] PARSER: WSI_TOK_(67) ';'
[2019/03/21 12:09:54:5774] PARSER: WSI_TOK_(67) ' '
[2019/03/21 12:09:54:5775] PARSER: WSI_TOK_(67) 'i'
[2019/03/21 12:09:54:5775] PARSER: WSI_TOK_(67) 'n'
[2019/03/21 12:09:54:5776] PARSER: WSI_TOK_(67) 'c'
[2019/03/21 12:09:54:5776] PARSER: WSI_TOK_(67) 'l'
[2019/03/21 12:09:54:5777] PARSER: WSI_TOK_(67) 'u'
[2019/03/21 12:09:54:5777] PARSER: WSI_TOK_(67) 'd'
[2019/03/21 12:09:54:5777] PARSER: WSI_TOK_(67) 'e'
[2019/03/21 12:09:54:5777] PARSER: WSI_TOK_(67) 'S'
[2019/03/21 12:09:54:5778] PARSER: WSI_TOK_(67) 'u'
[2019/03/21 12:09:54:5778] PARSER: WSI_TOK_(67) 'b'
[2019/03/21 12:09:54:5778] PARSER: WSI_TOK_(67) 'D'
[2019/03/21 12:09:54:5778] PARSER: WSI_TOK_(67) 'o'
[2019/03/21 12:09:54:5779] PARSER: WSI_TOK_(67) 'm'
[2019/03/21 12:09:54:5779] PARSER: WSI_TOK_(67) 'a'
[2019/03/21 12:09:54:5779] PARSER: WSI_TOK_(67) 'i'
[2019/03/21 12:09:54:5779] PARSER: WSI_TOK_(67) 'n'
[2019/03/21 12:09:54:5780] PARSER: WSI_TOK_(67) 's'
'2019/03/21 12:09:54:5780] PARSER: WSI_TOK_(67) '
[2019/03/21 12:09:54:5780] PARSER: *
[2019/03/21 12:09:54:5780] PARSER: WSI_TOKEN_SKIPPING_SAW_CR '
'
' 0x0D (role=0x10000000) wsi->lextable_pos=0_NAME_PART '
[2019/03/21 12:09:54:5781] PARSER: WSI_TOKEN_NAME_PART '
' 0x0A (role=0x10000000) wsi->lextable_pos=238
[2019/03/21 12:09:54:5781] PARSER: known hdr 8
[2019/03/21 12:09:54:5782] NOTICE: lws_http_client_http_response 403
[2019/03/21 12:09:54:5782] NOTICE:  Peer Cert CN        : www.bitmex.com
[2019/03/21 12:09:54:5785] NOTICE:  Peer Cert issuer    : /C=US/O=Amazon/OU=Server CA 1B/CN=Amazon
[2019/03/21 12:09:54:5786] NOTICE:  Peer Cert Valid from: Tue Nov 20 00:00:00 2018
[2019/03/21 12:09:54:5786] NOTICE:  Peer Cert Valid to  : Fri Dec 20 12:00:00 2019
[2019/03/21 12:09:54:5786] NOTICE:  Peer Cert usage bits: 0xa0
[2019/03/21 12:09:54:5787] ERR: Exiting

-------------- next part --------------
*   Trying 54.76.77.45...
* TCP_NODELAY set
* Connected to www.bitmex.com (54.76.77.45) port 443 (#0)
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [209 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [104 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [4854 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=www.bitmex.com
*  start date: Nov 21 00:00:00 2018 GMT
*  expire date: Dec 21 12:00:00 2019 GMT
*  subjectAltName: host "www.bitmex.com" matched cert's "www.bitmex.com"
*  issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
*  SSL certificate verify ok.
} [5 bytes data]
> GET /api/v1/instrument/active HTTP/1.1
> Host: www.bitmex.com
> User-Agent: curl/7.58.0
> Accept: */*
> 
{ [5 bytes data]
< HTTP/1.1 200 OK
< Date: Thu, 21 Mar 2019 17:02:07 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 51718
< Connection: keep-alive
< Set-Cookie: AWSALB=vo1IZfp0+5uKkCBRqnKY1BL0iorX4aOktf/43ERJSwEEoZrX5YouXyRGTwWwvTO/ZCnK+RRtkHXDy3KRZdSfWflh0fN8nHFO4aVjj7nJ1/EFXhyjg3oSL5OH8NOv; Expires=Thu, 28 Mar 2019 17:02:07 GMT; Path=/
< X-RateLimit-Limit: 150
< X-RateLimit-Remaining: 149
< X-RateLimit-Reset: 1553187728
< X-Powered-By: Profit
< ETag: W/"ca06-tPmVDb9XpHscM/G5kS85An4+PsU"
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< 
{ [15829 bytes data]
* Connection #0 to host www.bitmex.com left intact
[{"symbol":"XRPH19" ......


More information about the Libwebsockets mailing list