{"id":105081,"date":"2017-12-18T08:37:43","date_gmt":"2017-12-18T08:37:43","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=105081"},"modified":"2017-12-18T09:34:40","modified_gmt":"2017-12-18T09:34:40","slug":"magento2-set-curl-headers-options","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/","title":{"rendered":"Magento2 &#8211; How To  Set Curl Headers And Options"},"content":{"rendered":"<p>In this blog we will discuss how to set curl headers and other options in Magento2.<br \/>\nI am assuming that you already know how to use curl in Magento2.<br \/>\nIf you don&#8217;t know how to use curl in Magento2, You can refer to the blog <a href=\"https:\/\/webkul.com\/blog\/use-curl-magento-2\/\" target=\"_blank\" rel=\"noopener\">How To Use Curl In Magento 2<\/a><\/p>\n<h2>Initialize Curl in Magento2<\/h2>\n<pre class=\"brush:php\">\/**\r\n * @param \\Magento\\Framework\\HTTP\\Client\\Curl $curl\r\n *\/\r\npublic function __construct(\r\n    \\Magento\\Framework\\HTTP\\Client\\Curl $curl\r\n) {\r\n    $this-&gt;curl = $curl;\r\n}<\/pre>\n<h2>Set Basic Authorization in Curl &#8211; Magento2<\/h2>\n<p>In Magento2 we can set basic authorization using setCredentials method.<\/p>\n<pre class=\"brush:php\">$username = \"username\";\r\n$password = \"password\";\r\n$this-&gt;curl-&gt;setCredentials($username, $password);<\/pre>\n<p>It will be equivalent to setting CURLOPT_HTTPHEADER value<br \/>\n&#8220;Authorization : &#8220;. &#8220;Basic &#8220;.base64_encode($username.&#8221;:&#8221;.$password)<\/p>\n<h2>Set Curl Headers in Magento2<\/h2>\n<p>There are two methods in Magento2 to set curl headers.<\/p>\n<ul>\n<li>addHeader<\/li>\n<li>setHeaders<\/li>\n<\/ul>\n<p><strong>Setting curl header using addHeader method<\/strong><br \/>\naddheader method accepts two parameters. First is curl header name and second is curl header value.<\/p>\n<pre class=\"brush:php\">$this-&gt;curl-&gt;addHeader(\"Content-Type\", \"application\/json\");\r\n$this-&gt;curl-&gt;addHeader(\"Content-Length\", 200);<\/pre>\n<p><strong>Setting curl header using setHeaders method<\/strong><br \/>\nsetHeaders method accepts one parameters as array.<\/p>\n<pre class=\"brush:php\">$headers = [\"Content-Type\" =&gt; \"application\/json\", \"Content-Length\" =&gt; \"200\"];\r\n$this-&gt;curl-&gt;setHeaders($headers);<\/pre>\n<h2>Set Curl Options in Magento2<\/h2>\n<p>There are two methods in Magento2 to set curl options.<\/p>\n<ul>\n<li>setOption<\/li>\n<li>setOptions<\/li>\n<\/ul>\n<p><strong>Setting curl option using setOption method<\/strong><br \/>\nsetOption method accepts two parameters. First is curl option name and second is curl option value.<\/p>\n<pre class=\"brush:php\">$this-&gt;curl-&gt;setOption(CURLOPT_RETURNTRANSFER, true);\r\n$this-&gt;curl-&gt;setOption(CURLOPT_PORT, 8080);<\/pre>\n<p><strong>Setting curl options using setOptions method<\/strong><br \/>\nsetOptions method accepts one parameters as array.<\/p>\n<pre class=\"brush:php\">$headers = [CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_PORT =&gt; 8080];\r\n$this-&gt;curl-&gt;setHeaders($headers);<\/pre>\n<h2>Set Cookies in Curl &#8211; Magento2<\/h2>\n<p>There are two methods in Magento2 to set curl cookies.<\/p>\n<ul>\n<li>addCookie<\/li>\n<li>setCookies<\/li>\n<\/ul>\n<p><strong>Setting curl cookie using addCookie method<\/strong><br \/>\naddCookie method accepts two parameters. First is cookie name and second is cookie value.<\/p>\n<pre class=\"brush:php\">$this-&gt;curl-&gt;addCookie(\"test-cookie-days\", \"100\");\r\n$this-&gt;curl-&gt;addCookie(\"test-cookie-name\", \"name\");<\/pre>\n<p><strong>Setting curl cookie using setCookies method<\/strong><br \/>\nsetCookies method accepts one parameters as array.<\/p>\n<pre class=\"brush:php\">$cookies = [\"test-cookie-days\" =&gt; \"100\", \"test-cookie-name\" =&gt; \"name\"];\r\n$this-&gt;curl-&gt;setCookies($cookies);<\/pre>\n<p>Please note that you need to call all these methods before calling get or post method.<br \/>\nI hope this blog will help you. \ud83d\ude42<br \/>\nIf you have any doubt or query, comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog we will discuss how to set curl headers and other options in Magento2. I am assuming that you already know how to use curl in Magento2. If you don&#8217;t know how to use curl in Magento2, You can refer to the blog How To Use Curl In Magento 2 Initialize Curl in <a href=\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":21,"featured_media":105115,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[5908,3391,3393],"class_list":["post-105081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento2","tag-curl-advanced-options-magento2","tag-curl-of-magento-2","tag-magento-2-curl"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento2 - How To Set Curl Headers And Options - Webkul Blog<\/title>\n<meta name=\"description\" content=\"How to use curl in Magento2, How to set curl headers in Magento2, How to set curl options in Magento2, How to set curl cookies in Magento2,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento2 - How To Set Curl Headers And Options - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"How to use curl in Magento2, How to set curl headers in Magento2, How to set curl options in Magento2, How to set curl cookies in Magento2,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rahul0989\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-18T08:37:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-18T09:34:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rahul Mahto\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rahul Mahto\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\"},\"author\":{\"name\":\"Rahul Mahto\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f\"},\"headline\":\"Magento2 &#8211; How To Set Curl Headers And Options\",\"datePublished\":\"2017-12-18T08:37:43+00:00\",\"dateModified\":\"2017-12-18T09:34:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\"},\"wordCount\":283,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png\",\"keywords\":[\"Curl Advanced Options Magento2\",\"curl of magento 2\",\"magento 2 curl\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\",\"name\":\"Magento2 - How To Set Curl Headers And Options - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png\",\"datePublished\":\"2017-12-18T08:37:43+00:00\",\"dateModified\":\"2017-12-18T09:34:40+00:00\",\"description\":\"How to use curl in Magento2, How to set curl headers in Magento2, How to set curl options in Magento2, How to set curl cookies in Magento2,\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png\",\"width\":825,\"height\":260,\"caption\":\"Curl Headers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento2 &#8211; How To Set Curl Headers And Options\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f\",\"name\":\"Rahul Mahto\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rahul Mahto\"},\"sameAs\":[\"http:\/\/webkul.com\",\"https:\/\/www.facebook.com\/rahul0989\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/rahul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento2 - How To Set Curl Headers And Options - Webkul Blog","description":"How to use curl in Magento2, How to set curl headers in Magento2, How to set curl options in Magento2, How to set curl cookies in Magento2,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/","og_locale":"en_US","og_type":"article","og_title":"Magento2 - How To Set Curl Headers And Options - Webkul Blog","og_description":"How to use curl in Magento2, How to set curl headers in Magento2, How to set curl options in Magento2, How to set curl cookies in Magento2,","og_url":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_author":"https:\/\/www.facebook.com\/rahul0989","article_published_time":"2017-12-18T08:37:43+00:00","article_modified_time":"2017-12-18T09:34:40+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png","type":"image\/png"}],"author":"Rahul Mahto","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Rahul Mahto","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/"},"author":{"name":"Rahul Mahto","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f"},"headline":"Magento2 &#8211; How To Set Curl Headers And Options","datePublished":"2017-12-18T08:37:43+00:00","dateModified":"2017-12-18T09:34:40+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/"},"wordCount":283,"commentCount":3,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png","keywords":["Curl Advanced Options Magento2","curl of magento 2","magento 2 curl"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/","url":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/","name":"Magento2 - How To Set Curl Headers And Options - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png","datePublished":"2017-12-18T08:37:43+00:00","dateModified":"2017-12-18T09:34:40+00:00","description":"How to use curl in Magento2, How to set curl headers in Magento2, How to set curl options in Magento2, How to set curl cookies in Magento2,","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/12\/Magneto-Code-Snippet-1.png","width":825,"height":260,"caption":"Curl Headers"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento2-set-curl-headers-options\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento2 &#8211; How To Set Curl Headers And Options"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3002e6bca8362f6cf1c61b2663496c4f","name":"Rahul Mahto","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b0def172ef24ea3f7319500afbb65af8012023ba5c143982a4c958b2fb58ee0d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rahul Mahto"},"sameAs":["http:\/\/webkul.com","https:\/\/www.facebook.com\/rahul0989"],"url":"https:\/\/webkul.com\/blog\/author\/rahul\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/105081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=105081"}],"version-history":[{"count":31,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/105081\/revisions"}],"predecessor-version":[{"id":105145,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/105081\/revisions\/105145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/105115"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=105081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=105081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=105081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}