{"id":2801,"date":"2019-10-23T12:58:58","date_gmt":"2019-10-23T04:58:58","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&p=2801"},"modified":"2022-10-05T08:01:35","modified_gmt":"2022-10-05T00:01:35","slug":"how-do-i-check-my-servers-response-directly-without-cloudflare","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/how-do-i-check-my-servers-response-directly-without-cloudflare","title":{"rendered":"How do I check my server’s response directly without Cloudflare?"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

How do I check my server's response directly without Cloudflare?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t
When troubleshooting an issue with an HTTP response from Cloudflare, often your origin server may be the cause of this. Therefore, it is useful to request the same URL directly from your server to compare with the response from Cloudflare. In these examples, the domain is example.com<\/code>\u00a0and the IP address for the origin server is\u00a0123.123.123.123<\/code><\/article>
\u00a0<\/article>
First of all, to do this you’ll need to identify the IP address of your origin server – if you don’t know this already you can find this in your Cloudflare DNS settings by looking at the DNS records for your domain. We’re going to use the command-line tool cURL here to check your server’s response. For full information on the options available, take a look at the cURL manual page.<\/article>
\u00a0<\/article>
<\/article>

curl (versions 7.21.3 and newer)<\/strong><\/h4>
curl --silent --verbose \/\/example.com\/example-url\/here --resolve example.com:443:123.123.123.123 --insecure<\/code>

If you wanted to use HTTP instead of HTTPS, you would change the URL to https:\/\/ and also the Port number in the --resolve<\/code> the argument would change from\u00a0443<\/code>\u00a0to\u00a080<\/code><\/p>

Note<\/strong>\u00a0we have included the\u00a0--insecure<\/code> flag in this command as it skips cURL’s default behaviour of validating the SSL certificate presented by your server. If you have a valid certificate installed, you can remove this flag.<\/p>

The\u00a0--resolve<\/code> the flag allows you to neatly force a request to a specific IP address, but some older versions of cURL don’t support it. If absolutely necessary, you can use a different way of doing this.<\/p>

curl (versions 7.21.2 and older)<\/strong><\/h4>

curl --silent --verbose \/\/123.123.123.123\/example-url\/here --header \"Host: example.com\"<\/code><\/p>

The resulting output from cURL will show you the full HTTP response. Including headers direct from your origin server’s IP address – removing Cloudflare from the equation entirely. Therefore if you still see the issue you’re experiencing with this output. You can be sure you’ll need to investigate what is happening on your server. As the issue is not caused by Cloudflare. If it’s not obvious what the next step is from here, contacting your hosting provider for assistance is the best way forward.<\/p><\/article>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"

How do I check my server’s response directly without Cloudflare? When troubleshooting an issue with an HTTP response from Cloudflare, often your origin server may be the cause of this. Therefore, it is useful to request the same URL directly from your server to compare with the response from Cloudflare. In these examples, the domain …<\/p>\n

How do I check my server’s response directly without Cloudflare?<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2801"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2801"}],"version-history":[{"count":6,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2801\/revisions"}],"predecessor-version":[{"id":18863,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2801\/revisions\/18863"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2801"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2801"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2801"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}