Skip to content

caiocinel/Delphi-ExtWinHTTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExtWinHTTP - WinHttpRequest Wrapper to Legacy Delphi Versions

Requirements

https://github.com/hgourvest/superobject

Usage

var 
  Request: THttpRequest;
  Response: TResponse;

Request := THttpRequest.Create;
Request.URL := 'https://jsonplaceholder.typicode.com/todos/1';
Response := Request.Execute;

Response.Text => '{"userId": 1,  "id": 1,  "title": "delectus aut autem",  "completed": false }'
Response.JSON.S['title'] => 'delectus aut autem'
Response.Status => 200