-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
43 lines (35 loc) · 1.47 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
<!DOCTYPE html>
<html>
<head>
<title>curl-to-py: Convert curl commands to py 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-py.js"></script>
<link rel="stylesheet" href="resources/css/color-brewer.css">
<link rel="stylesheet" href="resources/css/common.css">
</head>
<body>
<header>
<h1>curl-to-py</h1>
<h2>Instantly convert <a href="http://curl.haxx.se/">curl</a> commands to <a href="https://python.org/">Python</a> code</h2>
<p>
This tool turns a curl command into Python code. There's probably bugs; please <a href="https://github.com/zhexuany/curl-to-py">contribute on GitHub</a>!
</p>
<p class="examples">
<a href="javascript:" id="example1">Very simple example</a> ·
<a href="javascript:" id="example2">Basic Auth</a> ·
<a href="javascript:" id="example3">POST</a> ·
<a href="javascript:" id="example4">POST data with files</a> ·
<a href="javascript:" id="example5">Several data blocks</a> ·
</header>
<main>
<textarea id="input" rows="4" placeholder="Paste curl here"></textarea>
<div id="output"></div>
</main>
<footer>
© <script>document.write(new Date().getFullYear());</script> Zhexuan Yang - <a href="https://github.com/zhexuany/curl-to-py">View on GitHub</a>
</footer>
</body>
</html>