HttpStatus

=HttpStatus(string url) : string

Returns the HTTP status code and its description.Use this function to find broken links.

HttpStatus slso retrieves the Location header (useful for debugging redirects).

Examples:

=HttpStatus(“http://nielsbosma.se/projects/seotools”)
=>”200 OK”

=HttpStatus(“http://www.nielsbosma.se”)
=>”301 Moved Permanently http://nielsbosma.se”

=HttpStatus(“http://neilsbosama.se”)
=>”The remote name could not be resolved: ‘neilsbosama.se’”

=HttpStatus(“http://nielsbosma.se/projects/foo”)
=>”404 Not Found”

Get help with this function in the SeoTools Community Forum.

 

One Response to HttpStatus

  1. Damian says:

    Hi Nil
    Thanks again for the great plugin.

    I have a little problem with the http-status:
    Excel / The plugin gives be back a 405 Message: But if I use another feature of your plugin, I get an error message with say, that the page cannot found (404 Error).
    Why the httpstatus function gives me back an 405 if it is a 404?

    Thanks