Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1

Скрипт для Windows CMD shell

Скрипт для Windows CMD shell
SET API=http://xxxx/api/v1
SET LOGIN=
SET PASSWORD=

SET CURL=curl.exe
SET HEADER=--header "Accept: application/json"
SET SAVE_COOKIE=--cookie-jar "cookie.txt"
SET LOAD_COOKIE=--cookie "cookie.txt"

%CURL% -X POST --data "" %HEADER% %SAVE_COOKIE% "%API%/account/login?login=%LOGIN%&password=%PASSWORD%"

%CURL% -X GET %HEADER% %LOAD_COOKIE% "%API%/request"

.

  • No labels