Skip to content

Instantly share code, notes, and snippets.

@JohnRoos
Last active April 15, 2024 06:57
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save JohnRoos/f5f40bf8bbef4020b165d4ecff142ffc to your computer and use it in GitHub Desktop.
Save JohnRoos/f5f40bf8bbef4020b165d4ecff142ffc to your computer and use it in GitHub Desktop.
Invoke-RestMethod with cookies and headers
@DocGreenRob
Copy link

headers doesn't work

@SurajNikam1994
Copy link

Fantastic Job! I had lost my hopes about passing cookies to my Invoke-RestMethod. Works well!

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