Since wordpress’s execution logic relies on parameters filled by the php-apache connector (mod_php) running a php command line is not guarantied to produce the same results or any at all, all depending on your local settings.
In any case, you should not check if your server is functioning from the server itself as there other web servers and network layer that can fail and you will not check them that way.
Related Posts:
- Should a 502 HTTP status code be used if a proxy receives no response at all?
- What is the difference between a URI, a URL and a URN?
- HTTP Status 504
- What is the difference between POST and GET? [duplicate]
- Do I need Content-Type: application/octet-stream for file download?
- Problem HTTP error 403 in Python 3 Web Scraping
- application/x-www-form-urlencoded or multipart/form-data?
- Problem HTTP error 403 in Python 3 Web Scraping
- application/x-www-form-urlencoded or multipart/form-data?
- Is 418 “I’m a teapot” really an HTTP response code?
- How to define the basic HTTP authentication using cURL correctly?
- How to define the basic HTTP authentication using cURL correctly?
- “Cannot GET /” with Connect on Node.js
- “CAUTION: provisional headers are shown” in Chrome debugger
- What’s the difference between a POST and a PUT HTTP REQUEST?
- How do I send a POST request with PHP?
- Why is it said that “HTTP is a stateless protocol”?
- What’s the difference between using application/csv vs text/csv? [duplicate]
- What are all the possible values for HTTP “Content-Type” header?
- What is the difference between PUT, POST and PATCH?
- What’s the difference between “Request Payload” vs “Form Data” as seen in Chrome dev tools Network tab
- Exception in thread “main” java.net.NoRouteToHostException: No route to host
- ndroid 8: Cleartext HTTP traffic not permitted
- Can PHP cURL retrieve response headers AND body in a single request?
- Setting Curl’s Timeout in PHP
- How are parameters sent in an HTTP POST request?
- Why am I suddenly getting a “Blocked loading mixed active content” issue in Firefox?
- wget: unable to resolve host address `http’
- Are HTTP headers case-sensitive?
- When looking at the differences between X-Auth-Token vs Authorization headers, which is preferred?
- WordPress HTTP parameter pollution
- Does WordPress send data about your blog to WordPress.org or Automattic?
- Hiding WordPress REST API v2 endpoints from public viewing
- Does WordPress only support HTTP 1.1?
- How do I troubleshoot responses with WP HTTP API?
- Is curl required?
- The resource was preloaded using link preload but not used within a few seconds
- using wp_remote_get to retrieve own url on local host
- Using wp-cron in backpress – problems with wp_remote_post, fsockopen error
- Enable CORS in wordpress
- Change port of wordpress
- How to get value of custom http header?
- Several times request to load plugins when sending one request
- why is $_REQUESt[‘redirect_to’] empty?
- Get “HTTP/1.1 406 Not Acceptable” when accesing my website with Delphi Indy Control
- WordPress HTTP 500 Error “page isn’t working”
- What’s the point in having “www” in a URL?
- For what is the “.well-known”-folder?
- Human readable format for http headers with tcpdump
- How to make wireshark filter POST-requests only?
- Image file urls still point to http instead of https
- What is the difference between POST and PUT in HTTP?
- How to do a PUT request with cURL?
- What does HTTP/1.1 302 mean exactly?
- Significance of port 3000 in Express apps
- How do I pull from a Git repository through an HTTP proxy?
- Uri not Absolute exception getting while calling Restful Webservice
- HTTP GET with request body
- urllib2.HTTPError: HTTP Error 403: Forbidden
- WebException (Status: Protocol Error)
- Response Content type as CSV
- Prevent WordPress from sending Cache-control http header
- Clarity needed on usage of multiple 403 forbidden header() functions at the beginning of the plugin files
- How can I use CURLOPT_USERPWD in wp_remote_post?
- Programmatically log in a wordpress user
- Upgrade to SSL Breaks Admin Dashboard
- Redirect www to non-www htaccess
- How are both HTTP and HTTPS versions displaying?
- HTTP Header on specific page is application instead of text
- Get the final destination after WP_Http redirects (WordPress)
- Cant Access Website – Changed HTTP to HTTPs
- How to set status codes such as 401 and 403?
- Getting soft 404 errors (200 status) when caching plugins are enabled
- How to return HTTP 404 when no search results found?
- Redirect user to a particular link in 10 seconds after using wp_die
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- Get full URL of images in media library including http://
- wordpress api using rest_route for other pages
- Is there an equivalent to WP_Error object I can return in the case of a successful REST request?
- No ‘Access-Control-Allow-Origin’ header is present [closed]
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- How to use https on one page only?
- How to make my site use HTTPS for images or how to insert images as relative paths?
- 404/500 error on content images if Referer header is from another domain [closed]
- Last-Modified header support doesnât speed up server processing – want more
- Why does WP HTTP API switch the method (POST/PURGE) to GET when redirecting (302)?
- Need workaround for insecure XMLHttpRequest endpoint request
- What is this HTTP_REFERRER “WordPress/4.1.2”
- Understanding Redirects
- How exactly does WordPress load themes from api.wordpress.org?
- Configure WordPress to listen on a port other than 80
- How to switch static files back to using HTTP instead of HTTPS?
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- CSS/JS is not working in multi lang installation
- Does WordPress perform better with curl installed?
- Any idea on how to fix this error when forcing SSL on a certain page?
- Random HTTP 500 error in WordPress
- Nice font not working when http to https – SSL Issue
- Whole website redirected to httpa but in dashboard settings still http
- Is it bad to redirect http to https?