Announcement

Collapse
No announcement yet.

Clarification of wget() documentation please?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dcarver
    replied
    -1 if it can't connect for whatever reason, timeout, invalid HTTPS cert, invalid URL Otherwise the HTTP status code is returned.

    Leave a comment:


  • Kent Multer
    started a topic Clarification of wget() documentation please?

    Clarification of wget() documentation please?

    Hi folks, I'm doing a project with wget(), and the documentation at mivascript.com is a bit vague.
    Returns -1 if fails, returns the server response code: Possible examples 200 = success, 301 = moved, 404 = not found.
    I think this means that it returns -1 if there's an internal VM-type error. In any other case, it returns the HTTP response code; and if the code is not 200, it may indicate some other type of error. Can someone please confirm that that's correct, or if not, tell me how it actually works?

    Thanks --


Working...
X