{"id":398046,"date":"2024-04-17T08:00:00","date_gmt":"2024-04-17T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/curlest\/"},"modified":"2025-07-15T22:29:00","modified_gmt":"2025-07-15T22:29:00","slug":"curlest","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/curlest\/","title":{"rendered":"Curlest"},"content":{"rendered":"<p>This plugin provides a shortcode called <code>[curlest]<\/code> which fetches and displays the raw content of a given HTTP URL as the shortcode\u2019s output.<\/p>\n<h3>Third party service description<\/h3>\n<p>This plugin does not make use of any third party services. No data is collected or submitted by this plugin.<\/p>\n<p>This plugin\u2019s source code may be verified for confirmation.<\/p>\n<h3>Usage<\/h3>\n<p>Install and activate the plugin.<\/p>\n<p>Use the Curlest shortcode inside a WordPress post or page:<\/p>\n<pre><code>[curlest url=\"\" cache=\"\" timeout=\"\" selector=\"\"]\n<\/code><\/pre>\n<ul>\n<li>\n<p>Valid values for <code>url<\/code>:<\/p>\n<ul>\n<li>e.g. <code>https:\/\/example.com\/index.html<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Valid values for <code>cache<\/code>:<\/p>\n<ul>\n<li>\n<p><code>nocache<\/code>: No caching, i.e. always fetch fresh new URL contents during each shortcode request.<\/p>\n<\/li>\n<li>\n<p>The following expressions will always respond with cached URL contents if available, and only fetches new URL data asynchronously, if the cached data has expired based on the given interval, where <code>N<\/code> is a number:<\/p>\n<\/li>\n<li><code>N s<\/code> or <code>N seconds<\/code><\/li>\n<li><code>N m<\/code> or <code>N minutes<\/code><\/li>\n<li><code>N h<\/code> or <code>N hours<\/code><\/li>\n<li>\n<p><code>N d<\/code> or <code>N days<\/code><\/p>\n<\/li>\n<li>\n<p>The following expressions <em>may<\/em> respond with cached URL contents, if the cached data has not yet expired, based on the given interval. The difference between the above expressions and the below is, with the above, if the cached data is stale (expired), the stale data will still be responded, but with the below (i.e. when the <code>fresh<\/code> option is added), stale data will <em>never<\/em> be responded; new data will first be fetched during the shortcode request before the new data is responded, where new data is fetched based on the given interval, and where <code>N<\/code> is a number:<\/p>\n<\/li>\n<li><code>N s fresh<\/code> or <code>N seconds fresh<\/code><\/li>\n<li><code>N m fresh<\/code> or <code>N minutes fresh<\/code><\/li>\n<li><code>N h fresh<\/code> or <code>N hours fresh<\/code><\/li>\n<li><code>N d fresh<\/code> or <code>N days fresh<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Valid values for <code>timeout<\/code>:<\/p>\n<ul>\n<li>Any number, e.g. <code>30<\/code> for 30 seconds. This parameter indicates how long to wait for a response when fetching the URL, before responding with an empty string.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Valid values for <code>selector<\/code>:<\/p>\n<ul>\n<li>Any CSS selector, for example <code>div.a div.b.c .d-e<\/code> to return the inner HTML as per the given CSS selector, from the contents of a fetched HTML document. It is assumed, when a CSS selector expression value is provided for this parameter, that the fetched URL contents is valid HTML; otherwise, if the fetched URL Does not contain valid HTML, the shortcode\u2019s output will be blank.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Curlest<\/p>\n","protected":false},"author":65,"featured_media":402397,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Curlest - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Curlest"},"footnotes":""},"categories":[1],"tags":[54529],"class_list":["post-398046","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-curlest"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/398046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=398046"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/398046\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/402397"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=398046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=398046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=398046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}