Hello. I decided to make a similar functionality as in Python, but I encountered a problem with data transfer to the server, so I didn’t do anything, no matter what format it was in - I get code 400, I tried all the options (I wanted to say that I haven’t found the correct one yet). Here’s what the request code and data look like.
$headers = @{
“User-Agent” = “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36”
“Content-Type” = “application/octet-stream”
}
$body = “08 01 12 9D 0F 0A D8 0D 08 01 12 FD 09 0A C0 02 08 02 12 20 88 DB 9A…”
I tried these too $body = “CAESnQ8K2A0IARL9CQrAAggCEiCI25o…”
I tried these too $body = “8 1 18 157 15 10 216 13 8 1 18 253 9 10 192 2 8 2 18 32…”
$response = Invoke-WebRequest -Uri “$licenseUrlContent” -Method “POST” -Body “$body” -Headers $headers -ContentType" = “application/octet-stream”
still error code 400