Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    Can you explain what this code does and how it addresses the problem given by the OP? Unexplained code can appear untrusted and dangerous to users.
    – bwDraco
    Commented Jul 16, 2015 at 1:58
  • 2
    Sure, we send a request to url, get only the first line of the response, split it on blocks and select the second one. It contains the response code that OP is looking for. Commented Jul 20, 2015 at 22:01