Skip to content

Convert curl commands to Java code(Jsoup) in your browser

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

ublack/curl-to-jsoup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curl-to-jsoup

curl-to-jsoup is a tool to instantly convert curl commands to Java code in the browser. It does not guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.

Try it

Check it out! It works inside your browser. Just give the code a once-over since it will need you to flush out some parts like error handling.

FAQ

Does any curl command work?

Any curl command should work, but only certain flags are understood and converted into Java code. The rest of the flags will be ignored.

Which kinds of curl commands are understood?

Mostly simple HTTP commands (headers, body, etc).

Will you consider supporting this-or-that flag?

curl has like a bajillion options, so don't expect all of them to be implemented; just the most common/important ones to stub out code from API samples and docs, etc. But feel free to open an issue or submit a pull request! To request a new flag, please provide the equivalent Java code.

Credits

curl-to-java is brought to you by fivesmallq (fivesmallq). Enjoy!

curl-to-Go is brought to you by Matt Holt (mholt6). Enjoy!

curl-to-php is brought to you by John C (John C). Enjoy!

About

Convert curl commands to Java code(Jsoup) in your browser

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published