Sha256: af5bc7d8859d95a868e6b76532b089ccc5aed8e3234a71eac08de2ae2c3043a7

Contents?: true

Size: 1.39 KB

Versions: 13

Compression:

Stored size: 1.39 KB

Contents

Return the response body from a HTTP GET request:

    http_get_body 'https://example.com/'
    # => "<!doctype html>\n<html>\n<head>\n    <title>Example Domain</title>\n\n    <meta charset=\"utf-8\" />\n    <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n    <style type=\"text/css\">\n    body {\n        background-color: #f0f0f2;\n        margin: 0;\n        padding: 0;\n        font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n        \n    }\n    div {\n        width: 600px;\n        margin: 5em auto;\n        padding: 2em;\n        background-color: #fdfdff;\n        border-radius: 0.5em;\n        box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n    }\n    a:link, a:visited {\n        color: #38488f;\n        text-decoration: none;\n    }\n    @media (max-width: 700px) {\n        div {\n            margin: 0 auto;\n            width: auto;\n        }\n    }\n    </style>    \n</head>\n\n<body>\n<div>\n    <h1>Example Domain</h1>\n    <p>This domain is for use in illustrative examples in documents. You may use this\n    domain in literature without prior coordination or asking for permission.</p>\n    <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\n</div>\n</body>\n</html>\n"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ronin-2.1.0 data/tips/scripting/http_get_body.txt
ronin-2.1.0.rc1 data/tips/scripting/http_get_body.txt
ronin-2.0.5 data/tips/scripting/http_get_body.txt
ronin-2.0.4 data/tips/scripting/http_get_body.txt
ronin-2.0.3 data/tips/scripting/http_get_body.txt
ronin-2.0.2 data/tips/scripting/http_get_body.txt
ronin-2.0.1 data/tips/scripting/http_get_body.txt
ronin-2.0.0 data/tips/scripting/http_get_body.txt
ronin-2.0.0.beta5 data/tips/scripting/http_get_body.txt
ronin-2.0.0.beta4 data/tips/scripting/http_get_body.txt
ronin-2.0.0.beta3 data/tips/scripting/http_get_body.txt
ronin-2.0.0.beta2 data/tips/scripting/http_get_body.txt
ronin-2.0.0.beta1 data/tips/scripting/http_get_body.txt