-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
62 lines (52 loc) · 2.53 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>curl-to-java: Convert curl commands to Java code</title>
<meta charset="utf-8">
<script src="resources/js/jquery.min.js"></script>
<script src="resources/js/highlight.pack.js"></script>
<script src="resources/js/common.js"></script>
<script src="resources/js/curl-to-java.js"></script>
<link rel="stylesheet" href="resources/css/color-brewer.css">
<link rel="stylesheet" href="resources/css/common.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-9829687-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-9829687-3');
</script>
</head>
<body>
<header>
<h1>curl-to-java</h1>
<h2>Instantly convert <a href="http://curl.haxx.se/">curl</a> commands to <a href="https://www.oracle.com/java/">Java</a> code</h2>
<p>
This tool turns a curl command into Java <a target="_blank" href="https://hc.apache.org/httpcomponents-client-ga/tutorial/html/fluent.html">Apache HttpClient Fluent</a> code. Currently, it knows the following options: -d/--data, -H/--header, -I/--head, --url, and -X/--request. Feel free to <a href="https://github.com/fivesmallq/curl-to-java">contribute on GitHub</a>!
</p>
<p>
This script derives from Matt Holt's excellent <a href="https://github.com/mholt/curl-to-go">curl-to-Go</a> and <a href="https://github.com/incarnate/curl-to-php">curl-to-php</a>.
</p>
<p class="examples">
<a href="javascript:" id="example1">Example 1</a> ·
<a href="javascript:" id="example2">Example 2</a> ·
<a href="javascript:" id="example3">Example 3</a> ·
<a href="javascript:" id="example4">Example 4</a> ·
<a href="javascript:" id="example5">Example 5</a>
</p>
</header>
<main>
<textarea id="input" rows="4" placeholder="Paste curl here"></textarea>
<div id="output"></div>
</main>
<p>
Note: Apache HttpClient Fluent Maven Central: <a target="_blank" href="https://maven-badges.herokuapp.com/maven-central/org.apache.httpcomponents/fluent-hc">
<img border="0" alt="Maven Central" src="https://maven-badges.herokuapp.com/maven-central/org.apache.httpcomponents/fluent-hc/badge.svg" >
</p>
<footer>
© <script>document.write(new Date().getFullYear());</script> fivesmallq - <a href="https://github.com/fivesmallq/curl-to-java">View on GitHub</a> - <a id="dark" href="javascript:">dark mode</a>
</footer>
</body>
</html>