Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nstevens1040 authored Jun 23, 2021
1 parent 869b442 commit b5ceb05
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Create-CookieCollectionFromJson
*(Tested and working on both **Windows PowerShell 5.1** as well as **PowerShell Core 7.1.3**.)*
## PowerShell Quick Start

I'm leaving this at the top of the page for convenience.
The command below will make **Create-CookieCollectionFromJson** available in your current PowerShell session.
```ps1
iex (irm "https://raw.githubusercontent.com/nstevens1040/Create-CookieCollectionFromJson/main/Create-CookieCollectionFromJson.ps1")
```
## What is Create-CookieCollectionFromJson?

## Using cookies in PowerShell

Together with my other library **[Execute.HttpRequest](https://github.com/nstevens1040/Execute.HttpRequest)**, this script will alow you to make authenticated HTTP requests in PowerShell via cookies.

**Create-CookieCollectionFromJson** works for both **Windows PowerShell 5.1** as well as **PowerShell Core 7.1.3**.
It is a PowerShell script that creates a **[System.Net.CookieCollection](https://docs.microsoft.com/en-us/dotnet/api/system.net.cookiecollection?view=net-5.0)** object using the json exported from the **[EditThisCookie](https://www.editthiscookie.com)** browser extension.

## Use Case

Though, I should mention that although **[Execute.HttpRequest](https://github.com/nstevens1040/Execute.HttpRequest)** is fully functional in **Windows PowerShell** you will find that the DOM Parsing functionality is lost if you try to use it in **PowerShell Core** because it relies on the Trident rendering engine (Microsoft.mshtml.dll).
Together with my other library **[Execute.HttpRequest](https://github.com/nstevens1040/Execute.HttpRequest)**, this script will alow you to make authenticated HTTP requests in Windows PowerShell via cookies.

Create-CookieCollectionFromJson creates a **System.Net.CookieCollection** object in **PowerShell** using the json exported from the [EditThisCookie](https://www.editthiscookie.com) browser extension.
Although **[Execute.HttpRequest](https://github.com/nstevens1040/Execute.HttpRequest)** is fully functional in **Windows PowerShell** it does **not** work in **PowerShell Core** (yet).

**A word of caution; please be smart while using your cookies. They are used to authenticate you.**

Expand Down

0 comments on commit b5ceb05

Please sign in to comment.