History
50 |-
51 | {% for bin in recent %}
52 |
- 53 | 54 | {{bin.name}} {% if bin.private %}{% endif %} 55 | ({{bin.request_count}}) 56 | 57 | 58 | {% else %} 59 |
60 | No recent bins. 61 |
62 | {% endfor %} 63 |├── .env ├── requestbin ├── storage │ ├── __init__.py │ ├── memory.py │ └── redis.py ├── static │ ├── robots.txt │ ├── lock.png │ ├── favicon.ico │ ├── img │ │ ├── logo.png │ │ ├── ico-1.png │ │ ├── ico-2.png │ │ ├── ico-3.png │ │ ├── ico-4.png │ │ ├── logo-2x.png │ │ ├── bg-stripe.png │ │ ├── runscope-hero.png │ │ ├── logo-runscope-1x.png │ │ ├── logo-runscope-2x.png │ │ ├── glyphicons-halflings.png │ │ └── glyphicons-halflings-white.png │ ├── font │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── less │ │ ├── layouts.less │ │ ├── component-animations.less │ │ ├── utilities.less │ │ ├── grid.less │ │ ├── breadcrumbs.less │ │ ├── responsive-768px-979px.less │ │ ├── hero-unit.less │ │ ├── wells.less │ │ ├── responsive-1200px-min.less │ │ ├── close.less │ │ ├── accordion.less │ │ ├── pager.less │ │ ├── media.less │ │ ├── scaffolding.less │ │ ├── responsive.less │ │ ├── thumbnails.less │ │ ├── code.less │ │ ├── alerts.less │ │ ├── bootstrap.less │ │ ├── responsive-utilities.less │ │ ├── tooltip.less │ │ ├── labels-badges.less │ │ ├── modals.less │ │ ├── pagination.less │ │ ├── carousel.less │ │ ├── progress-bars.less │ │ ├── popovers.less │ │ ├── responsive-767px-max.less │ │ ├── responsive-navbar.less │ │ ├── reset.less │ │ ├── buttons.less │ │ ├── type.less │ │ ├── button-groups.less │ │ ├── dropdowns.less │ │ ├── tables.less │ │ ├── navs.less │ │ ├── variables.less │ │ ├── custom.less │ │ ├── sprites.less │ │ └── navbar.less │ ├── css │ │ ├── prettify.css │ │ └── styles.css │ └── js │ │ └── prettify.js ├── templates │ ├── doc.html │ ├── home.html │ ├── layout.html │ └── bin.html ├── util.py ├── db.py ├── config.py ├── views.py ├── api.py ├── __init__.py ├── filters.py └── models.py ├── runtime.txt ├── Procfile ├── .gitignore ├── web.py ├── docker-compose.yml ├── requirements.txt ├── setup.py ├── app.json ├── Dockerfile ├── LICENSE └── README.md /.env: -------------------------------------------------------------------------------- 1 | workon requestbin 2 | -------------------------------------------------------------------------------- /requestbin/storage/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /runtime.txt: -------------------------------------------------------------------------------- 1 | python-2.7.16 2 | -------------------------------------------------------------------------------- /requestbin/static/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn --worker-class gevent --workers 2 --max-requests 1000 requestbin:app -------------------------------------------------------------------------------- /requestbin/static/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/lock.png -------------------------------------------------------------------------------- /requestbin/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/favicon.ico -------------------------------------------------------------------------------- /requestbin/static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/logo.png -------------------------------------------------------------------------------- /requestbin/static/img/ico-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/ico-1.png -------------------------------------------------------------------------------- /requestbin/static/img/ico-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/ico-2.png -------------------------------------------------------------------------------- /requestbin/static/img/ico-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/ico-3.png -------------------------------------------------------------------------------- /requestbin/static/img/ico-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/ico-4.png -------------------------------------------------------------------------------- /requestbin/static/img/logo-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/logo-2x.png -------------------------------------------------------------------------------- /requestbin/static/img/bg-stripe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/bg-stripe.png -------------------------------------------------------------------------------- /requestbin/static/font/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/font/FontAwesome.otf -------------------------------------------------------------------------------- /requestbin/static/img/runscope-hero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/runscope-hero.png -------------------------------------------------------------------------------- /requestbin/static/img/logo-runscope-1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/logo-runscope-1x.png -------------------------------------------------------------------------------- /requestbin/static/img/logo-runscope-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/logo-runscope-2x.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | **/**/*.pyc 2 | *.egg-info 3 | **/*.pyc 4 | serviced.log 5 | 6 | codekit-config.json 7 | 8 | # Mac Files 9 | **/.DS_Store 10 | -------------------------------------------------------------------------------- /requestbin/static/font/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/font/fontawesome-webfont.eot -------------------------------------------------------------------------------- /requestbin/static/font/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/font/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /requestbin/static/font/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/font/fontawesome-webfont.woff -------------------------------------------------------------------------------- /requestbin/static/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /requestbin/static/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adaptive/requestbin/master/requestbin/static/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /web.py: -------------------------------------------------------------------------------- 1 | from requestbin import config 2 | import os 3 | 4 | from requestbin import app 5 | 6 | if __name__ == "__main__": 7 | port = int(os.environ.get('PORT', config.PORT_NUMBER)) 8 | app.run(host='0.0.0.0', port=port, debug=config.DEBUG) -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | app: 2 | build: . 3 | environment: 4 | REALM: prod 5 | REDIS_URL: "//redis:6379" 6 | links: 7 | - redis 8 | ports: 9 | - "8000:8000" 10 | 11 | redis: 12 | image: redis 13 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | gevent==1.3.7 2 | greenlet==0.4.15 3 | ProxyTypes==0.10.0 4 | nose==1.3.7 5 | wsgiref==0.1.2 6 | feedparser==5.2.1 7 | Jinja2==2.10 8 | Werkzeug==0.14.1 9 | Flask==1.0.2 10 | Flask-Cors==3.0.6 11 | redis==2.10.6 12 | msgpack-python==0.5.6 13 | python-dateutil==2.7.3 14 | gunicorn 15 | bugsnag 16 | blinker 17 | -------------------------------------------------------------------------------- /requestbin/templates/doc.html: -------------------------------------------------------------------------------- 1 | {% extends "layout.html" %} 2 | {% block head %} 3 | 6 | {% endblock %} 7 | {% block content %} 8 |
A Runscope community project. Send us feedback!
20 |60 | No recent bins. 61 |
62 | {% endfor %} 63 |{% if bin.private %}This is a private bin. Requests are only viewable from this computer.{% endif %} 49 | 50 |
curl -X POST -d "fizz=buzz" {{base_url}}/{{bin.name}}
58 |
59 | import requests, time
61 | r = requests.post('{{base_url}}/{{bin.name}}', data={"ts":time.time()})
62 | print r.status_code
63 | print r.content
64 |
65 | var request = require('request');
67 | var url ='{{base_url}}/{{bin.name}}'
68 | request(url, function (error, response, body) {
69 | if (!error) {
70 | console.log(body);
71 | }
72 | });
73 |
74 | require 'open-uri'
76 | result = open('{{base_url}}/{{bin.name}}')
77 | result.lines { |f| f.each_line {|line| p line} }
78 |
79 | using System;
81 | using System.Net.Http;
82 | using System.Threading.Tasks;
83 |
84 | namespace RequestBinExample
85 | {
86 | class Program
87 | {
88 | static void Main(string[] args)
89 | {
90 | MakeRequest();
91 | }
92 |
93 | private static async Task MakeRequest()
94 | {
95 | var httpClient = new HttpClient();
96 | var response = await httpClient.GetAsync(new Uri("{{base_url}}/{{bin.name}}"));
97 | var body = await response.Content.ReadAsStringAsync();
98 | Console.WriteLine(body);
99 | }
100 | }
101 | }
102 |
103 | import org.apache.commons.httpclient.*;
105 | import org.apache.commons.httpclient.methods.*;
106 | import org.apache.commons.httpclient.params.HttpMethodParams;
107 |
108 | import java.io.*;
109 |
110 | public class RequestBinTutorial {
111 | public static void main(String[] args) {
112 | HttpClient client = new HttpClient();
113 | GetMethod method = new GetMethod("{{base_url}}/{{bin.name}}");
114 | try {
115 | int statusCode = client.executeMethod(method);
116 | byte[] responseBody = method.getResponseBody();
117 | System.out.println(new String(responseBody));
118 | } catch (Exception e) {
119 | System.err.println("Fatal error: " + e.getMessage());
120 | e.printStackTrace();
121 | } finally {
122 | method.releaseConnection();
123 | }
124 | }
125 | }
126 |
127 | <?php
129 | $result = file_get_contents('{{base_url}}/{{bin.name}}');
130 | echo $result;
131 | ?>
132 |
133 | {{k}}: {{v}}
159 | {% else %} 160 | None 161 | {% endfor %} 162 | 163 | {% if request.query_string and not request.query_string is string %} 164 |{{k}}
168 | {% else %} 169 |{{k}}: {{v}}
170 | {% endif %} 171 | {% endfor %} 172 | {% endif %} 173 |{{header.0}}: {{header.1|escape}}
179 | {% endfor %} 180 | {% endif %} 181 |{{ request.get_raw() or "None" }}
187 |