sanjai0py
sanjai0py

Reputation: 1

How to convert HAR formatted request to Powershell request?

I have this simple request which is in the format of HAR

{
    "method": "GET",
    "url": "https://example.com",
    "httpVersion": "HTTP/1.1",
    "cookies": [],
    "headers": [],
    "queryString": [],
    "postData": {
        "mimeType": ""
    },
    "headersSize": 0,
    "bodySize": 0
}

I need to convert this request to Powershell (WebRequest/RestMethod)

Any help is appreciated!!

I tried using Httpsnippet. It works fine for simple requests but for some reason it fails converting complex requests.

Upvotes: 0

Views: 198

Answers (0)

Related Questions