Skip to content

Targets

Filipe Freire edited this page Feb 20, 2023 · 13 revisions

Currently the following output targets are supported:

Go

Golang HTTP client request

Options
Option Default Description
checkErrors false add error checking for request, response and body
printBody true include code to print the body as a string
timeout -1 sets a request timeout in seconds (requires go 1.3+)

Java

Lightweight HTTP Request Client Library

Options
Option Default Description
indent line break & indent output value

An HTTP Request Client Library

Options
Option Default Description
indent line break & indent output value

JavaScript

Perform an asynchronous HTTP (Ajax) requests with jQuery

Options
Option Default Description
indent line break & indent output value

W3C Standard API that provides scripted client functionality

Options
Option Default Description
cors true use xhr.withCredentials = true
indent line break & indent output value
Options

Node.js

Node.js native HTTP interface

Options
Option Default Description
indent line break & indent output value

Simplified HTTP request client

Options
Option Default Description
indent line break & indent output value

Lightweight HTTP Request Client Library

Options
Option Default Description
indent line break & indent output value

Objective-C

Foundation's NSURLSession request

Options
Option Default Description
indent line break & indent output value
pretty true indent extracted headers/parameters in NSDictionary literals
timeout 10 NSURLRequest timeout

OCaml

CoHTTP is a very lightweight HTTP server using Lwt or Async for OCaml

Options
Option Default Description
indent line break & indent output value

PHP

PHP with ext-curl

Options
Option Default Description
closingTag false add a closing tag ?>
indent line break & indent output value
maxRedirects 10 value for CURLOPT_MAXREDIRS
namedErrors false attempt to display curl error name instead of #
noTags false do NOT output start and end tags: <?php, ?>
shortTags false use short opening tag: <?
timeout 30 value for CURLOPT_TIMEOUT

PHP with pecl/http v1

Options
Option Default Description
closingTag false add a closing tag ?>
indent line break & indent output value
noTags false do NOT output start and end tags: <?php, ?>
shortTags false use short opening tag: <?

PHP with pecl/http v2

Options
Option Default Description
closingTag false add a closing tag ?>
indent line break & indent output value
noTags false do NOT output start and end tags: <?php, ?>
shortTags false use short opening tag: <?

Python

Python3 HTTP Client

Requests HTTP library


Ruby

Ruby HTTP client


Shell

cURL is a command line tool and library for transferring data with URL syntax

Option Default Description
indent line break & indent output value, set to false to disable line breaks
short false use short form of cURL CLI options

a CLI, cURL-like tool for humans

Option Default Description
body false only the response body is printed
cert false use a client side certificate (see httpie docs)
headers false only the response headers are printed
indent line break & indent output value, set to false to disable line breaks
pretty false syntax highlighting (see httpie docs)
print false selects parts of the HTTP exchange, e.g. --print=Hh (see httpie docs)
queryParams false use query params as CLI parameters otherwise, query string is added to URL
short false use short form of cURL CLI options
style false syntax highlighting (see httpie docs)
timeout false overwrite the default 30s timeout
verbose false print the whole HTTP exchange (request and response)
verify false server SSL certificate verification (see httpie docs)

a free software package for retrieving files using HTTP, HTTPS

Option Default Description
indent line break & indent output value, set to false to disable line breaks
short false use short form of cURL CLI options
verbose false by default, --quiet is always used, unless verbose is set to true

Swift

Foundation's NSURLSession request

Option Default Description
indent line break & indent output value
pretty true indent extracted headers/parameters in NSDictionary literals
timeout 10 NSURLRequest timeout

C#

Simple REST and HTTP API Client for .NET

C

A easy-to-use client-side URL transfer library