488 Commits

Author SHA1 Message Date
Dainis Gorbunovs
5cfedbf595 Add MATLAB generator (#154)
* Added MATLAB generator

* Fix the issue with single quotes inside double quotes

* webwrite cannot take params as inputs bugfix

* Simplified querystrings for webwrite with data

* Ignore Xnull from Safari

* Bump Node version to 7 to support ECMAScript 6

* structify() function to turn JSON into MATLAB structs

* Add MATLAB structs if data can be parsed as JSON

* Remove the whitespace before ellipsis in MATLAB generator

* WIP on RequestMessage workflow

* Use RequestMessage API

* WIP on WebServices

* Add data to the webwrite

* VerifyServerName flag

* Add files using fileread function

* Make sure only one cookie header is sent

* Fix Cookies in fixtures

* Use newer Node for flatten()

* Use cookie/param string

* Use dot notation for options

* Transpose headers

* Make basic auth work with only password

* put_with_file nonbinary files, multiple_d_post json object

* options unsafe URI symbols, ignore full uri

* Split MATLAB generator into two variants

* Removed todo comments

* Add MATLAB to the CLI

* Add option to disable SSL verification

* Require Node 12+
2020-03-08 18:32:27 -07:00
Nick Carneiro
32faa8c366 bump version to 2.16.0 2020-03-06 09:08:03 -08:00
Chris Sells
1892cb013d Dart: standardjs fixes 2020-02-01 09:48:43 -08:00
Chris Sells
1b5e2d3d0c Dart: query parameter support and Exception clarify 2020-02-01 09:43:20 -08:00
Nick Carneiro
3fba89c462 update contributors and their contributions 2020-01-09 17:50:08 -08:00
Nick Carneiro
a980a3ecfa bump verison to 2.15.0 2020-01-09 17:43:12 -08:00
Nick Carneiro
7adf6eb43f fix js style 2020-01-09 17:42:53 -08:00
Nick Carneiro
c3306af236 Merge pull request #168 from MarkReeder/patch-1
Pretty print JSON output - Fixes #167
2020-01-09 15:34:03 -08:00
Nick Carneiro
d8b2c68797 Merge pull request #171 from clintonc/boolean-flags
Set some flags in yargs as boolean.
2020-01-09 15:33:14 -08:00
Nick Carneiro
3ed20c9b08 Merge branch 'master' into boolean-flags 2020-01-09 15:30:21 -08:00
Nick Carneiro
0b7e71eb68 Merge pull request #175 from Robertof/es6-conversion
Convert codebase to ES6 syntax
2020-01-09 15:27:38 -08:00
Nick Carneiro
1a2f204e9d Merge branch 'master' into es6-conversion 2020-01-09 15:26:26 -08:00
Nick Carneiro
a85de0e9ce Merge pull request #172 from clintonc/clean-code
Clean code
2020-01-09 15:12:43 -08:00
Nick Carneiro
d3c93aba6e Merge pull request #177 from Robertof/rust-generator-refactor
Rust generator refactor
2020-01-09 15:11:41 -08:00
Nick Carneiro
8061c7bebb re-add correct host string from PR 2020-01-09 15:09:55 -08:00
Nick Carneiro
a1eef7322e Merge pull request #170 from clintonc/fix-test-cases
Make test cases consistent and correct.
2020-01-09 15:08:24 -08:00
Nick Carneiro
b374763bd3 Merge branch 'master' into fix-test-cases 2020-01-09 15:04:13 -08:00
Nick Carneiro
50ad014d98 Merge pull request #176 from Robertof/fix-quoting-issues
Fix quoting issues in Rust and PHP generators
2020-01-09 15:02:58 -08:00
Nick Carneiro
5aaa958dc6 fix js style 2020-01-09 13:03:43 -08:00
Nick Carneiro
276698fbe4 bump version to 2.14.0 2020-01-09 13:02:07 -08:00
Nick Carneiro
0be4bd4c93 add attribution for elixir 2020-01-09 10:19:19 -08:00
Nick Carneiro
3712b15797 Merge pull request #190 from yanshiyason/implement_elixir
implement elixir generator
2020-01-09 10:18:41 -08:00
Yannick Chiasson
6a9f86c8a9 prefer inlining everything 2019-12-31 21:42:35 +09:00
Yannick Chiasson
38bacae90a add elixir to readme 2019-12-31 14:43:54 +09:00
Yannick Chiasson
103c51c97e implement elixir 2019-12-31 14:40:19 +09:00
Roberto Frenna
3ca40d11ef Fix some conversion mistakes / syntax mishaps 2019-10-27 16:00:24 +00:00
Roberto Frenna
b57f2974b1 Ensure Rust generator is up to Standard's standards (pun intended) 2019-10-27 15:54:55 +00:00
Roberto Frenna
a094cdc13c Add Rust test for requests with multipart content and headers 2019-10-27 15:47:29 +00:00
Roberto Frenna
6ec49dfcc8 Refactor Rust generator
This refactors the "Rust" generator, using modern JS syntax and also making sure that
the resulting Rust code compiles.
2019-10-27 15:46:59 +00:00
Roberto Frenna
010810db4f Add tests to ensure proper quoting behavior in PHP and Rust 2019-10-27 13:54:44 +00:00
Roberto Frenna
5fcfe8507c Ensure proper quoting in rust and php generators
This also "fixes" a test, but note that it is broken -- #170 fixes it.
2019-10-27 13:53:58 +00:00
Roberto Frenna
5ccd9ed5af Refactor to ES6 syntax
This commit migrates the project to use ES6 syntax (`let` and `const` where appropriate, arrow functions). This syntax is supported in Node 6, so retrocompatibility should be ok.
2019-10-27 13:13:04 +00:00
Roberto Frenna
a795930155 Update standard to latest version 2019-10-27 12:40:13 +00:00
Clinton Curry
8fa283ca76 Alias -A to --user-agent. 2019-10-12 21:25:37 -07:00
Clinton Curry
4798418af0 Use regex split for headers 2019-10-12 20:31:08 -07:00
Clinton Curry
5ee20f2ef1 Alias header flag in yargs 2019-10-12 20:17:04 -07:00
Clinton Curry
dd6c212ff7 No need to search before replacing newlines 2019-10-12 13:38:16 -07:00
Clinton Curry
1860fc81ec Remove unneeded method for joining array elements. 2019-10-12 13:36:46 -07:00
Clinton Curry
6143b9b30a Set some flags in yargs as boolean.
This prevents yargs from absorbing some positional parameters, e.g.,
URLs, as arguments of flags that don't take any.  The heuristic logic
for locating a URL is no longer needed for all tests to pass.
2019-10-12 10:30:59 -07:00
Clinton Curry
ea9732b559 Make test cases consistent and correct.
cURL commands in the wild are typically meant to be pasted into the
console, and thus have quoting for a shell.  This is done inconsistently
in the test cases, but ought to be done all the time when it makes a
difference (e.g., when ? or & appear in the URL).

It also came to light that the get_with_form test case is syntactically
incorrect, and the corresponding test file did not have a good expected
value.
2019-10-12 10:30:14 -07:00
Mark Reeder
eda5b11924 Update json_output fixtures 2019-10-11 13:20:37 -04:00
Mark Reeder
c6f86a7970 Fixes #167
Add space argument to `JSON.stringify` to format the JSON output.
2019-10-11 12:56:09 -04:00
Nick Carneiro
6cdf5f8d71 Merge pull request #158 from NickCarneiro/rustform
fix for Rust multipartUploads conversion issue
2019-09-04 11:08:37 -07:00
Nick Carneiro
5173f069a8 Merge pull request #159 from NickCarneiro/allNumericalData
Handling for -d with all numerical requests
2019-09-04 10:21:45 -07:00
Nick Carneiro
c77ae6ebd1 Merge pull request #160 from NickCarneiro/strestCookieHeader
Strest: include cookie in headers output
2019-09-04 10:19:19 -07:00
Nick Carneiro
6156bf627a Merge pull request #162 from NickCarneiro/data-ascii
--data-ascii alias support
2019-09-04 10:18:07 -07:00
Connor F
5732183242 data-ascii an alias for -d, --data 2019-09-03 11:04:52 -05:00
Connor F
b77c809990 test node output 2019-09-03 11:02:05 -05:00
Connor F
b62175a83e test curl input 2019-09-03 11:01:34 -05:00
Connor F
9e44fd6623 check first for all numerical and convert to string 2019-08-30 11:15:41 -05:00