Skip to content

Targets

shashi ranjan edited this page Mar 30, 2015 · 10 revisions

Currently the following output targets are supported:

Go

Native

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

Unirest

Lightweight HTTP Request Client Library

Options
Option Default Description
indent line break & indent output value

OkHttp

An HTTP Request Client Library

Options
Option Default Description
indent line break & indent output value

JavaScript

jQuery.ajax

Perform an asynchronous HTTP (Ajax) requests with jQuery

Options
Option Default Description
indent line break & indent output value

XMLHttpRequest

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

Native

Node.js native HTTP interface

Options
Option Default Description
indent line break & indent output value

Request

Simplified HTTP request client

Options
Option Default Description
indent line break & indent output value

Unirest

Lightweight HTTP Request Client Library

Options
Option Default Description
indent line break & indent output value

Objective-C

NSURLSession

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

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

Options
Option Default Description
indent line break & indent output value

PHP

ext-curl

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

pecl/http v1

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: <?

pecl/http v2

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

Python 3

Python3 HTTP Client

Requests

Requests HTTP library


Ruby

Native

Ruby HTTP client


Shell

cURL

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

HTTPie

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)

Wget

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

NSURLSession

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**#**

RestSharp

Simple REST and HTTP API Client for .NET

C

LibCurl

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

Clone this wiki locally
You can’t perform that action at this time.