Skip to content

curl and Invoke-RestMethod won't work after compile #4

Description

@N0rimaki

Hi,
i'm not sure if this fits here, but i've the Issue that curl and Invoke-RestMethod doesnt'work anymore when the ps1 script is compiled with ps2exe.
Booth Versions work when i run the PS1 script. Is this known issue or is just my code wrong?

curl.exe --% -X GET http://127.0.0.1:8080?IP=10.0.0.15&Action=11
or

$params = @{
	 "IP"=$LocalIP;
	 "Action"="1";}

	Invoke-RestMethod -Uri "http://127.0.0.1:8080" -Method POST -Body ($params|ConvertTo-Json) -ContentType "application/json"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions