From 522f324fe29bf2ae2d294a991215ad54be779ec6 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Sat, 17 Jun 2017 16:02:09 -0400 Subject: [PATCH] add additional Windows hint for cURL --- view/template/developer/_quickstartApi.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/view/template/developer/_quickstartApi.php b/view/template/developer/_quickstartApi.php index a8e6519b..2171dc10 100644 --- a/view/template/developer/_quickstartApi.php +++ b/view/template/developer/_quickstartApi.php @@ -59,3 +59,7 @@

$Invoke-RestMethod -Uri 'http://localhost:5279/lbryapi' -Body 'THE_JSON_DATA' -Method POST | ConvertTo-Json +

If PowerShell does not work and you want to continue with cURL, you'll need to escape inner double quotes with a \ to pass the JSON properly via Command Prompt. +

+$curl "http://localhost:5279/lbryapi" --data "{\"method\":\"get\",\"params\":{\"uri\":\"what\"} }" +