HTTPSocket.ErrorCode

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Integer )
IntegerValue = aHTTPSocket.ErrorCode

Supported for all project types and targets.

A special case of LastErrorCode.

Notes

Returns the same as LastErrorCode except for these two conditions:

  1. If Get/Post/GetHeaders/SendRequest times out, then ErrorCode = -1
  2. When calling Get (the overloaded method that accepts a FolderItem as a parameter), if the file is a directory or could not be created then ErrorCode = 1