Skip to content

Instantly share code, notes, and snippets.

@infectedfate
Last active December 2, 2018 10:21
Show Gist options
  • Select an option

  • Save infectedfate/6de13e18c57db75691c77cfdd445f20f to your computer and use it in GitHub Desktop.

Select an option

Save infectedfate/6de13e18c57db75691c77cfdd445f20f to your computer and use it in GitHub Desktop.
Thincnetica rails basic
GET /anything HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Sun, 02 Dec 2018 09:46:58 GMT
Content-Type: application/json
Content-Length: 246
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{
"args": {},
"data": "",
"files": {},
"form": {},
"headers": {
"Connection": "close",
"Host": "httpbin.org"
},
"json": null,
"method": "GET",
"origin": "194.15.117.32",
"url": "http://httpbin.org/anything"
}
------
GET /anything?name=mordecai HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Sun, 02 Dec 2018 09:48:49 GMT
Content-Type: application/json
Content-Length: 286
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{
"args": {
"name": "mordecai"
},
"data": "",
"files": {},
"form": {},
"headers": {
"Connection": "close",
"Host": "httpbin.org"
},
"json": null,
"method": "GET",
"origin": "194.15.117.32",
"url": "http://httpbin.org/anything?name=mordecai"
}
-----
POST /anything HTTP/1.1
Host: httpbin.org
Content-Length: 7
foo=bar
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Sun, 02 Dec 2018 10:20:41 GMT
Content-Type: application/json
Content-Length: 282
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
{
"args": {},
"data": "foo=bar",
"files": {},
"form": {},
"headers": {
"Connection": "close",
"Content-Length": "7",
"Host": "httpbin.org"
},
"json": null,
"method": "POST",
"origin": "194.15.117.32",
"url": "http://httpbin.org/anything"
}
@BubuntuClu
Copy link

тут параметры не передал
тут тоже параметры не указал

https://gist.github.com/infectedfate/6de13e18c57db75691c77cfdd445f20f#file-gistfile1-txt-L273 обращайся к адресу /anything. надо для всех запросов получить ответ 200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment