|
| 1 | +# Targets |
| 2 | + |
| 3 | +Currently the following output targets are supported: |
| 4 | + |
| 5 | +## Go |
| 6 | + |
| 7 | +### [Native](http://golang.org/pkg/net/http/#NewRequest) |
| 8 | + |
| 9 | +> Golang HTTP client request |
| 10 | +
|
| 11 | +###### Options |
| 12 | + |
| 13 | +| Option | Default | Description | |
| 14 | +| --------------- | ------- | ----------------------------------------------------- | |
| 15 | +| `checkErrors` | `false` | add error checking for request, response and body | |
| 16 | +| `printBody` | `true` | include code to print the body as a string | |
| 17 | +| `timeout` | `-1` | sets a request timeout in seconds (requires go 1.3+) | |
| 18 | + |
| 19 | +---- |
| 20 | + |
| 21 | +## Java |
| 22 | + |
| 23 | +### [Unirest](http://unirest.io/java.html) |
| 24 | + |
| 25 | +> Lightweight HTTP Request Client Library |
| 26 | +
|
| 27 | +###### Options |
| 28 | + |
| 29 | +| Option | Default | Description | |
| 30 | +| --------- | ------- | -------------------------------- | |
| 31 | +| `indent` | ` ` | line break & indent output value | |
| 32 | + |
| 33 | +### [OkHttp](http://square.github.io/okhttp/) |
| 34 | + |
| 35 | +> An HTTP Request Client Library |
| 36 | +
|
| 37 | +###### Options |
| 38 | + |
| 39 | +| Option | Default | Description | |
| 40 | +| --------- | ------- | -------------------------------- | |
| 41 | +| `indent` | ` ` | line break & indent output value | |
| 42 | + |
| 43 | +---- |
| 44 | + |
| 45 | +## JavaScript |
| 46 | + |
| 47 | +### [jQuery.ajax](http://api.jquery.com/jquery.ajax/) |
| 48 | + |
| 49 | +> Perform an asynchronous HTTP (Ajax) requests with jQuery |
| 50 | +
|
| 51 | +###### Options |
| 52 | + |
| 53 | +| Option | Default | Description | |
| 54 | +| --------- | ------- | -------------------------------- | |
| 55 | +| `indent` | ` ` | line break & indent output value | |
| 56 | + |
| 57 | +### [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) |
| 58 | + |
| 59 | +> W3C Standard API that provides scripted client functionality |
| 60 | +
|
| 61 | +###### Options |
| 62 | + |
| 63 | +| Option | Default | Description | |
| 64 | +| --------- | ------- | -------------------------------- | |
| 65 | +| `cors` | `true` | use `xhr.withCredentials = true` | |
| 66 | +| `indent` | ` ` | line break & indent output value | |
| 67 | + |
| 68 | +###### Options |
| 69 | + |
| 70 | +---- |
| 71 | + |
| 72 | +## Node.js |
| 73 | + |
| 74 | +### [Native](http://nodejs.org/api/http.html#http_http_request_options_callback) |
| 75 | + |
| 76 | +> Node.js native HTTP interface |
| 77 | +
|
| 78 | +###### Options |
| 79 | + |
| 80 | +| Option | Default | Description | |
| 81 | +| --------- | ------- | -------------------------------- | |
| 82 | +| `indent` | ` ` | line break & indent output value | |
| 83 | + |
| 84 | +### [Request](https://github.com/request/request) |
| 85 | + |
| 86 | +> Simplified HTTP request client |
| 87 | +
|
| 88 | +###### Options |
| 89 | + |
| 90 | +| Option | Default | Description | |
| 91 | +| --------- | ------- | -------------------------------- | |
| 92 | +| `indent` | ` ` | line break & indent output value | |
| 93 | + |
| 94 | +### [Unirest](http://unirest.io/nodejs.html) |
| 95 | + |
| 96 | +> Lightweight HTTP Request Client Library |
| 97 | +
|
| 98 | +###### Options |
| 99 | + |
| 100 | +| Option | Default | Description | |
| 101 | +| --------- | ------- | -------------------------------- | |
| 102 | +| `indent` | ` ` | line break & indent output value | |
| 103 | + |
| 104 | +---- |
| 105 | + |
| 106 | +## Objective-C |
| 107 | + |
| 108 | +### [NSURLSession](https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html) |
| 109 | + |
| 110 | +> Foundation's NSURLSession request |
| 111 | +
|
| 112 | +###### Options |
| 113 | + |
| 114 | +| Option | Default | Description | |
| 115 | +| --------- | ------- | --------------------------------------------------------------- | |
| 116 | +| `indent` | ` ` | line break & indent output value | |
| 117 | +| `pretty` | `true` | indent extracted headers/parameters in `NSDictionary` literals | |
| 118 | +| `timeout` | `10` | NSURLRequest timeout | |
| 119 | + |
| 120 | +---- |
| 121 | + |
| 122 | +## OCaml |
| 123 | + |
| 124 | +### [CoHTTP](https://github.com/mirage/ocaml-cohttp) |
| 125 | + |
| 126 | +> CoHTTP is a very lightweight HTTP server using Lwt or Async for OCaml |
| 127 | +
|
| 128 | +###### Options |
| 129 | + |
| 130 | +| Option | Default | Description | |
| 131 | +| --------- | ------- | -------------------------------- | |
| 132 | +| `indent` | ` ` | line break & indent output value | |
| 133 | + |
| 134 | +---- |
| 135 | + |
| 136 | +## PHP |
| 137 | + |
| 138 | +### [ext-curl](http://php.net/manual/en/book.curl.php) |
| 139 | + |
| 140 | +> PHP with ext-curl |
| 141 | +
|
| 142 | +###### Options |
| 143 | + |
| 144 | +| Option | Default | Description | |
| 145 | +| --------------- | ------- | ----------------------------------------------- | |
| 146 | +| `closingTag` | `false` | add a closing tag `?>` | |
| 147 | +| `indent` | ` ` | line break & indent output value | |
| 148 | +| `maxRedirects` | `10` | value for `CURLOPT_MAXREDIRS` | |
| 149 | +| `namedErrors` | `false` | attempt to display curl error name instead of # | |
| 150 | +| `noTags` | `false` | do NOT output start and end tags: `<?php`, `?>` | |
| 151 | +| `shortTags` | `false` | use short opening tag: `<?` | |
| 152 | +| `timeout` | `30` | value for `CURLOPT_TIMEOUT` | |
| 153 | + |
| 154 | +### [pecl/http v1](http://php.net/manual/en/book.http.php) |
| 155 | + |
| 156 | +> PHP with pecl/http v1 |
| 157 | +
|
| 158 | +###### Options |
| 159 | + |
| 160 | +| Option | Default | Description | |
| 161 | +| --------------- | ------- | ----------------------------------------------- | |
| 162 | +| `closingTag` | `false` | add a closing tag `?>` | |
| 163 | +| `indent` | ` ` | line break & indent output value | |
| 164 | +| `noTags` | `false` | do NOT output start and end tags: `<?php`, `?>` | |
| 165 | +| `shortTags` | `false` | use short opening tag: `<?` | |
| 166 | + |
| 167 | +### [pecl/http v2](http://devel-m6w6.rhcloud.com/mdref/http) |
| 168 | + |
| 169 | +> PHP with pecl/http v2 |
| 170 | +
|
| 171 | +###### Options |
| 172 | + |
| 173 | +| Option | Default | Description | |
| 174 | +| --------------- | ------- | ----------------------------------------------- | |
| 175 | +| `closingTag` | `false` | add a closing tag `?>` | |
| 176 | +| `indent` | ` ` | line break & indent output value | |
| 177 | +| `noTags` | `false` | do NOT output start and end tags: `<?php`, `?>` | |
| 178 | +| `shortTags` | `false` | use short opening tag: `<?` | |
| 179 | + |
| 180 | +---- |
| 181 | + |
| 182 | +## Python |
| 183 | + |
| 184 | +### [Python 3](https://docs.python.org/3/library/http.client.html) |
| 185 | + |
| 186 | +> Python3 HTTP Client |
| 187 | +
|
| 188 | +### [Requests](http://docs.python-requests.org/en/latest/api/#requests.request) |
| 189 | + |
| 190 | +Requests HTTP library |
| 191 | + |
| 192 | +---- |
| 193 | + |
| 194 | +## Ruby |
| 195 | + |
| 196 | +### [Native](http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html) |
| 197 | + |
| 198 | +> Ruby HTTP client |
| 199 | +
|
| 200 | +---- |
| 201 | + |
| 202 | +## Shell |
| 203 | + |
| 204 | +### [cURL](http://curl.haxx.se/) |
| 205 | + |
| 206 | +> cURL is a command line tool and library for transferring data with URL syntax |
| 207 | +
|
| 208 | +| Option | Default | Description | |
| 209 | +| -------- | ------- | ------------------------------------------------------------------------ | |
| 210 | +| `indent` | ` ` | line break & indent output value, set to `false` to disable line breaks | |
| 211 | +| `short` | `false` | use short form of cURL CLI options | |
| 212 | + |
| 213 | +### [HTTPie](http://httpie.org) |
| 214 | + |
| 215 | +> a CLI, cURL-like tool for humans |
| 216 | +
|
| 217 | +| Option | Default | Description | |
| 218 | +| ------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- | |
| 219 | +| `body` | `false` | only the response body is printed | |
| 220 | +| `cert` | `false` | use a client side certificate *(see [httpie docs](https://github.com/jakubroztocil/httpie#client-side-ssl-certificate))* | |
| 221 | +| `headers` | `false` | only the response headers are printed | |
| 222 | +| `indent` | ` ` | line break & indent output value, set to `false` to disable line breaks | |
| 223 | +| `pretty` | `false` | syntax highlighting *(see [httpie docs](https://github.com/jakubroztocil/httpie#colors-and-formatting))* | |
| 224 | +| `print` | `false` | selects parts of the HTTP exchange, e.g. `--print=Hh` *(see [httpie docs](https://github.com/jakubroztocil/httpie#output-options))* | |
| 225 | +| `queryParams` | `false` | use query params as CLI parameters *otherwise, query string is added to URL* | |
| 226 | +| `short` | `false` | use short form of cURL CLI options | |
| 227 | +| `style` | `false` | syntax highlighting *(see [httpie docs](https://github.com/jakubroztocil/httpie#colors-and-formatting))* | |
| 228 | +| `timeout` | `false` | overwrite the default *30s* timeout | |
| 229 | +| `verbose` | `false` | print the whole HTTP exchange (request and response) | |
| 230 | +| `verify` | `false` | server SSL certificate verification *(see [httpie docs](https://github.com/jakubroztocil/httpie#server-ssl-certificate-verification))* | |
| 231 | + |
| 232 | +### [Wget](https://www.gnu.org/software/wget/) |
| 233 | + |
| 234 | +> a free software package for retrieving files using HTTP, HTTPS |
| 235 | +
|
| 236 | +| Option | Default | Description | |
| 237 | +| --------- | ------- | ------------------------------------------------------------------------ | |
| 238 | +| `indent` | ` ` | line break & indent output value, set to `false` to disable line breaks | |
| 239 | +| `short` | `false` | use short form of cURL CLI options | |
| 240 | +| `verbose` | `false` | by default, `--quiet` is always used, unless `verbose` is set to `true` | |
| 241 | + |
| 242 | +---- |
| 243 | + |
| 244 | +## Swift |
| 245 | + |
| 246 | +### [NSURLSession](https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html) |
| 247 | + |
| 248 | +> Foundation's NSURLSession request |
| 249 | +
|
| 250 | +| Option | Default | Description | |
| 251 | +| --------- | ------- | --------------------------------------------------------------- | |
| 252 | +| `indent` | ` ` | line break & indent output value | |
| 253 | +| `pretty` | `true` | indent extracted headers/parameters in `NSDictionary` literals | |
| 254 | +| `timeout` | `10` | NSURLRequest timeout | |
| 255 | + |
| 256 | + |
| 257 | +## C# |
| 258 | + |
| 259 | +### [RestSharp](http://restsharp.org/) |
| 260 | + |
| 261 | +> Simple REST and HTTP API Client for .NET |
| 262 | +
|
| 263 | +## C |
| 264 | + |
| 265 | +### [LibCurl](http://curl.haxx.se/libcurl/) |
| 266 | + |
| 267 | +> A easy-to-use client-side URL transfer library |
0 commit comments