Set port in requests

前端 未结 3 409
栀梦
栀梦 2021-02-07 04:51

I\'m attempting to make use of cgminer\'s API using Python. I\'m particularly interested in utilizing the requests library.

I understand how to

3条回答
  •  不思量自难忘°
    2021-02-07 05:36

    Request is an HTTP library.

    You can specify the port in the URL http://example.com:4028/....

    But, from what I can read in a hurry here cgminer provides a RPC API (or JSON RPC?) not an HTTP interface.

提交回复
热议问题