+++ authors = ["author-demo"] categories = ["paige", "shortcodes"] description = "Demonstration of the request shortcode." tags = ["request", "figures"] title = "Request" +++ The `paige/request` shortcode displays the content for a URL. ## Basic Code: ```go-html-template
{{* paige/request "https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" */>}}``` Result:
{{< paige/request "https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" >}}## Method parameter Code: ```go-html-template
{{* paige/request method="get" url="https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" */>}}``` Result:
{{< paige/request method="get" url="https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" >}}## Url parameter Code: ```go-html-template
{{* paige/request url="https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" */>}}``` Result:
{{< paige/request url="https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" >}}## Figure Code: ```go-html-template {{* paige/figure caption="License" */>}}
{{* paige/request "https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" */>}}{{* /paige/figure */>}} ``` Result: {{< paige/figure caption="License" >}}
{{< paige/request "https://raw.githubusercontent.com/willfaught/paige/master/LICENSE" >}}{{< /paige/figure >}}