Convert Postman HTTP Post Request using Reqwest Library

Hello guys, I am new to the rust programming language. I am trying to create an API for a blockchain using a rust reqwest. Below is the code I got from Postman that I need to run using rust reqwest.

POST HTTP/1.1
Host: 127.0.0.1:11221
content-type: text/plain;
Authorization: Basic dXNlcjE0MzE4NTgxNjM6cGFzczA1MDYwYWZjNTA1OTNiZTc3ZGJlMmM2ODRhZWMzZGM3ZmRmMGZkOWRlNTE2ZWE4ZTc0NzkyOTNlMWQ5MWM1ZjczYQ==
User-Agent: PostmanRuntime/7.18.0
Accept: /
Cache-Control: no-cache
Postman-Token: 5cd833a9-968e-428f-bd71-8d181ad9f8a2,2e6b4696-6de0-416b-b7d8-70f55466afc9
Host: 127.0.0.1:11221
Accept-Encoding: gzip, deflate
Content-Length: 77
Connection: keep-alive
cache-control: no-cache

{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": }

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.