{ "info": { "author": "Alexandr Lispython", "author_email": "alex@obout.ru", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Internet", "Topic :: Software Development :: Libraries" ], "description": "HTTP Request & Response service\n===============================\n\nSimple service for testing HTTP/HTTPS requests.\nAll endpoint responses are JSON-encoded exclude `/status/{status_code: int} `_.\nIt's useful for testing how your own scripts deal with varying responses and requests.\n\n.. image:: https://travis-ci.org/Lispython/httphq.png\n\t :target: https://travis-ci.org/Lispython/httphq\n\nINSTALLATION\n------------\n\nYou can use ``easy_install`` or ``pip`` to install `httphq`:\n\n``pip install httphq``\n\nor\n\n``easy_install httphq``\n\nENDPOINTS\n---------\n\n- `/ `_ \u2014 Show home page\n- `/ip `_ \u2014 Returns client IP and proxies\n- `/get `_ \u2014 GET method\n- `/post `_ \u2014 POST method\n- `/put `_ \u2014 PUT method\n- `/head `_ \u2014 HEAD method\n- `/options `_ \u2014 OPTIONS method\n- `/delete `_ \u2014 DELETE method\n- `/user-agent `_ \u2014 Returns user agent\n- `/headers `_ \u2014 Returns sended headers\n- `/cookies `_ \u2014 Returns all user cookies\n- `/cookies/set/{name: str}/{value: str} `_ \u2014 Setup given name and value on client\n- `/status/{status_code: int} `_ \u2014 Returns given HTTP status code\n- `/basic-auth/{username: str}/{password: str} `_ \u2014 Basic access authentication\n- `/digest-auth/{qop: auth | auth-int}/{username: str}/{password: str} `_ \u2014 Digest access authentication\n\n\nHTTP status codes\n-----------------\n\n1xx Informational\n~~~~~~~~~~~~~~~~~\n\n- `100 `_ \u2014 Continue\n- `101 `_ \u2014 Switching Protocols\n\n2xx Success\n~~~~~~~~~~~\n- `200 `_ \u2014 OK\n- `201 `_ \u2014 Created\n- `202 `_ \u2014 Accepted\n- `203 `_ \u2014 Non-Authoritative Information\n- `204 `_ \u2014 No Content [ Won't return a response body ]\n- `205 `_ \u2014 Reset Content [ Won't return a response body ]\n- `206 `_ \u2014 Partial Content\n\n3xx Redirection\n~~~~~~~~~~~~~~~\n- `300 `_ \u2014 Multiple Choices\n- `301 `_ \u2014 Moved Permanently [ Will also return this extra header: Location: http://http.obout.ru ]\n- `302 `_ \u2014 Found [ Will also return this extra header: Location: http://h.wrttn.me ]\n- `303 `_ \u2014 See Other [ Will also return this extra header: Location: http://h.wrttn.me ]\n- `304 `_ \u2014 Not Modified [ Won't return a response body ]\n- `305 `_ \u2014 Use Proxy [ Will also return this extra header: Location: http://h.wrttn.me ]\n- `306 `_ \u2014 (Unused)\n- `307 `_ \u2014 Temporary Redirect [ Will also return this extra header: Location: http://h.wrttn.me ]\n\n4xx Client Error\n~~~~~~~~~~~~~~~~\n\n- `400 `_ \u2014 Bad Request\n- `401 `_ \u2014 Unauthorized [ Will also return this extra header: WWW-Authenticate: Basic realm=\"Fake Realm\" ]\n- `402 `_ \u2014 Payment Required\n- `403 `_ \u2014 Forbidden\n- `404 `_ \u2014 Not Found\n- `405 `_ \u2014 Method Not Allowed\n- `406 `_ \u2014 Not Acceptable\n- `407 `_ \u2014 Proxy Authentication Required [ Will also return this extra header: Proxy-Authenticate: Basic realm=\"Fake Realm\" ]\n- `408 `_ \u2014 Request Timeout\n- `409 `_ \u2014 Conflict\n- `410 `_ \u2014 Gone\n- `411 `_ \u2014 Length Required\n- `412 `_ \u2014 Precondition Failed\n- `413 `_ \u2014 Request Entity Too Large\n- `414 `_ \u2014 Request-URI Too Long\n- `415 `_ \u2014 Unsupported Media Type\n- `416 `_ \u2014 Requested Range Not Satisfiable\n- `417 `_ \u2014 Expectation Failed\n\n\n5xx Server Error\n~~~~~~~~~~~~~~~~\n\n- `500 `_ \u2014 Internal Server Error\n- `501 `_ \u2014 Not Implemented\n- `502 `_ \u2014 Bad Gateway\n- `503 `_ \u2014 Service Unavailable\n- `504 `_ \u2014 Gateway Timeout\n- `505 `_ \u2014 HTTP Version Not Supported\n\n\nEXAMPLES\n--------\n\n.. code-block:: text\n\n curl http://h.wrttn.me/get | python -mjson.tool\n {\n \"args\": {},\n \"headers\": {\n \"Accept\": \"*/*\",\n \"Host\": \"h.wrttn.me\",\n \"User-Agent\": \"curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15\"\n },\n \"url\": \" http://h.wrttn.me/get\"\n }\n\n\n curl -X POST -F \"name=value\" http://h.wrttn.me/post | python -mjson.tool\n {\n \"args\": {\n \"name\": [\n \"value\"\n ]\n },\n \"body\": \"------------------------------eb288eb3d3e4\\r\\nContent-Disposition: form-data; name=\\\"name\\\"\\r\\n\\r\\nvalue\\r\\n------------------------------eb288eb3d3e4--\\r\\n\",\n \"files\": {},\n \"headers\": {\n \"Accept\": \"*/*\",\n \"Content-Length\": \"144\",\n \"Content-Type\": \"multipart/form-data; boundary=----------------------------eb288eb3d3e4\",\n \"Expect\": \"100-continue\",\n \"Host\": \"h.wrttn.me\",\n \"User-Agent\": \"curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15\"\n },\n \"ip\": \"127.0.0.1\",\n \"request_time\": 0.04458308219909668,\n \"start_time\": 1313996082.806412,\n \"url\": \"http://h.wrttn.me/post\"\n }\n\n\n curl -X POST -F \"test_files=@/tmp/testfile1.txt\" -F \"test_files=@/tmp/testfile2.txt\" http://h.wrttn.me/post | python -mjson.tool\n {\n \"args\": {},\n \"files\": {\n \"pictures\": [\n {\n \"body\": \";klrjewfghjnq3rjehg;fqnr___j3bnr4lgfbv4riy5bguy4br5y\\n\",\n \"content_type\": \"text/plain\",\n \"filename\": \"testfile1.txt\"\n },\n {\n \"body\": \";klrlfkejwknfqwdrkjnbkfgjb3erj\\n\",\n \"content_type\": \"text/plain\",\n \"filename\": \"testfile2.txt\"\n }\n ]\n },\n \"body\": \"\",\n \"headers\": {\n \"Accept\": \"*/*\",\n \"Content-Length\": \"428\",\n \"Content-Type\": \"multipart/form-data; boundary=----------------------------af3ea881bfa9\",\n \"Expect\": \"100-continue\",\n \"Host\": \"h.wrttn.me\",\n \"User-Agent\": \"curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15\"\n },\n \"ip\": \"127.0.0.1\",\n \"request_time\": 0.04804205894470215,\n \"start_time\": 1313953495.331477,\n \"url\": \"http://h.wrttn.me/post\"\n }\n\n\nSEE ALSO\n--------\n\n`http://hurl.it `_, `httpbin `_, `postbin `_, `ifconfig.me `_, `httpstat.us `_\n\n\nCONTRIBUTE\n----------\n\nFork https://github.com/Lispython/httphq/ , create commit and pull request.\n\n\nTHANKS\n------\n\nTo `Kenneth Reitz `_ who develop `httpbin.org `_", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Lispython/httphq", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "httphq", "package_url": "https://pypi.org/project/httphq/", "platform": "Linux,Mac", "project_url": "https://pypi.org/project/httphq/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Lispython/httphq" }, "release_url": "https://pypi.org/project/httphq/0.0.6/", "requires_dist": null, "requires_python": null, "summary": "HTTP Request & Response service", "version": "0.0.6" }, "last_serial": 893482, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "de8c7e3a42648fbc04fb9925272b591a", "sha256": "613eb934cb2bad390053a1d7b4029950bff1e2f5b87ea73c872970e539a580ee" }, "downloads": -1, "filename": "httphq-0.0.1.linux-i686.exe", "has_sig": false, "md5_digest": "de8c7e3a42648fbc04fb9925272b591a", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 92318, "upload_time": "2013-03-02T18:09:03", "url": "https://files.pythonhosted.org/packages/61/00/3b023c99d8aa0972c76f6a248bd5ad548654c2527803fac8c0e8baec65d9/httphq-0.0.1.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "9c334310737ec3188f1a6fed763675fe", "sha256": "8ae67ae8e7c5dcdd3320fa31e9db01c353bee98bdd79ad027842fdfc336a1c6d" }, "downloads": -1, "filename": "httphq-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9c334310737ec3188f1a6fed763675fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26285, "upload_time": "2013-03-02T18:08:56", "url": "https://files.pythonhosted.org/packages/61/36/aa38e3123ab359b6822d1c36cd2f7e48582ceb202c3c95c2c441fbc8d46f/httphq-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9fe2d33dbe49649b119462fbc4cdd2b5", "sha256": "17c21934118d72180d43a732b2b60da68a0566054bb061ade271a403d0ada7bb" }, "downloads": -1, "filename": "httphq-0.0.2.linux-i686.exe", "has_sig": false, "md5_digest": "9fe2d33dbe49649b119462fbc4cdd2b5", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 92363, "upload_time": "2013-03-02T21:45:53", "url": "https://files.pythonhosted.org/packages/00/e5/8b2964ec0953223b5bbde735f8cf0e3aafc18eee1fdd2405f54ef613717d/httphq-0.0.2.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "d15ce2df755aff7d21c1da1ee9a175b5", "sha256": "4643bf2180e8b7f33c67b6d5cda9ec962979f4815ec65690d3144267a423b99c" }, "downloads": -1, "filename": "httphq-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d15ce2df755aff7d21c1da1ee9a175b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26325, "upload_time": "2013-03-02T21:45:46", "url": "https://files.pythonhosted.org/packages/da/0d/c41be7f5ce1610baa6dede544904c378c7c2e96dc8ee7bf695d43d87da44/httphq-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "4f0dc85275d2c7c564d1cd52b64f4e97", "sha256": "99b9a5a28adc68d9af4034038cb4aac0a23d8edd3532c271b69a98acc0bf1450" }, "downloads": -1, "filename": "httphq-0.0.3.linux-i686.exe", "has_sig": false, "md5_digest": "4f0dc85275d2c7c564d1cd52b64f4e97", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 92394, "upload_time": "2013-03-03T09:37:33", "url": "https://files.pythonhosted.org/packages/3d/48/d742d800211aae84f7d7f010d473f0114d3b8b685030396886718280c1e3/httphq-0.0.3.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "8498b67302c6f259e5c17199bb0038e4", "sha256": "376e37b9a68f76aa620f8d04224cca878cbb59442d16274b0bfc609ac53fe99f" }, "downloads": -1, "filename": "httphq-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8498b67302c6f259e5c17199bb0038e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75707, "upload_time": "2013-03-03T09:37:27", "url": "https://files.pythonhosted.org/packages/d4/6f/41d91525564c026650619d566e3102c47fe244bb9056672abffd1d1504dd/httphq-0.0.3.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "c6e16447c30269a64d0c14745a8405a3", "sha256": "ad95b84764951d1097bdc64f3b546bbd6c8b858916a347d5737b8ce5040a4907" }, "downloads": -1, "filename": "httphq-0.0.5.linux-i686.exe", "has_sig": false, "md5_digest": "c6e16447c30269a64d0c14745a8405a3", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 103908, "upload_time": "2013-03-03T15:44:02", "url": "https://files.pythonhosted.org/packages/21/55/11a8fdedb9b7b13d65984cd208ea9bead5d9dddcc5c43b46744b3d80a233/httphq-0.0.5.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "c3c7674a65f1e7222787e175ad49a4c9", "sha256": "5ece7984cb8650b7da0452791cfae205dc783171f06b34e3828f8f8c90677bbd" }, "downloads": -1, "filename": "httphq-0.0.5.tar.gz", "has_sig": false, "md5_digest": "c3c7674a65f1e7222787e175ad49a4c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79295, "upload_time": "2013-03-03T15:43:55", "url": "https://files.pythonhosted.org/packages/83/e6/7d4cf0d81a9768f3a422ed14f6e5a35a40e55ec19b5b31b8202001c18263/httphq-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "45d564b9fb0457d219e5e4746b9de4f3", "sha256": "5adb56f4373041973c98ea6706d6b0503a21af53d8b9c78c73aba116d395cbf0" }, "downloads": -1, "filename": "httphq-0.0.6.linux-i686.exe", "has_sig": false, "md5_digest": "45d564b9fb0457d219e5e4746b9de4f3", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 104475, "upload_time": "2013-10-13T16:28:34", "url": "https://files.pythonhosted.org/packages/6e/ca/39fe80c4c3d67d1c94a8655f148f4aa4068b325f2e21f33eed442c942812/httphq-0.0.6.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "8a7098a9d43956217d1d40efedbdf1fe", "sha256": "59bb82de8a31c2d3cafdd2994ec12153e2f11cc4a096b68a7b4d853de6deaee3" }, "downloads": -1, "filename": "httphq-0.0.6.tar.gz", "has_sig": false, "md5_digest": "8a7098a9d43956217d1d40efedbdf1fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79551, "upload_time": "2013-10-13T16:28:31", "url": "https://files.pythonhosted.org/packages/05/5d/f35043fbc3d67f258098b62166cf007da7cd1ee54e02a09ab67d3bba4efa/httphq-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "45d564b9fb0457d219e5e4746b9de4f3", "sha256": "5adb56f4373041973c98ea6706d6b0503a21af53d8b9c78c73aba116d395cbf0" }, "downloads": -1, "filename": "httphq-0.0.6.linux-i686.exe", "has_sig": false, "md5_digest": "45d564b9fb0457d219e5e4746b9de4f3", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 104475, "upload_time": "2013-10-13T16:28:34", "url": "https://files.pythonhosted.org/packages/6e/ca/39fe80c4c3d67d1c94a8655f148f4aa4068b325f2e21f33eed442c942812/httphq-0.0.6.linux-i686.exe" }, { "comment_text": "", "digests": { "md5": "8a7098a9d43956217d1d40efedbdf1fe", "sha256": "59bb82de8a31c2d3cafdd2994ec12153e2f11cc4a096b68a7b4d853de6deaee3" }, "downloads": -1, "filename": "httphq-0.0.6.tar.gz", "has_sig": false, "md5_digest": "8a7098a9d43956217d1d40efedbdf1fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79551, "upload_time": "2013-10-13T16:28:31", "url": "https://files.pythonhosted.org/packages/05/5d/f35043fbc3d67f258098b62166cf007da7cd1ee54e02a09ab67d3bba4efa/httphq-0.0.6.tar.gz" } ] }