I would agree with MacTron on his sentiments completely.
But I can offer a bit of help in this specific instance.
For example, it says that you can call the functions of the internet classes synchronously if you use the timeOut parameter, but if you try this then it will complain that you used too many parameters.
Are you using the HttpSocket class?
If you are how many parameters are you passing 1, 2 or 3? I assume 2 or 3 since you are setting a timeout?
if 2 parameters the Get method returns a string of what was retrieved. If 3 parameters it returns a boolean if the call succeeded or failed. In either case, the compiler expects that return value to be assigned to something. Failure to do so will result int the too many parameters error.
So this will work and put the results in the string result.
Dim h as new HTTPSocker
Dim result as string
result = h.Get("www.macos9lives.com", 30)
This will fail to compile with the too many parameters error.
Dim h as new HTTPSocker
h.Get("www.macos9lives.com", 30)
This will also fail like the one above
Dim h as new HTTPSocker
Dim f as FolderItem
f = GetFolderItem("Drive:SomeFile")
h.Get("www.macos9lives.com", f, 30)
But this will work
Dim h as new HTTPSocker
Dim f as FolderItem
Dim result as Boolean
f = GetFolderItem("Drive:SomeFile")
result = h.Get("www.macos9lives.com", f, 30)
I want to extend it with HTTPS using the CONNECT command.
Using the HttpSocket won't help you with trying to use the CONNECT command.
That just creates a sort of man in the middle proxy where the raw tcp stream is marshaled between the two end points through the proxy. The HttpSocket runs and connects at the Application level of the OSI stack. For using Connect you need to control the stream at the Transport level of the OSI stack (TCP).