Alaska Software Inc. - Re: LoadfromUrl return a log saying "file not found"
Username: Password:
AuthorTopic: Re: LoadfromUrl return a log saying "file not found"
Andreas Gehrs-Pahl

View the complete thread for this message in:

Re: LoadfromUrl return a log saying "file not found"
on Sun, 06 Dec 2015 19:16:00 -0500
Osvaldo,

>cHttp:= "http://zetaserver.cloudapp.net:8082/MessageMobile/api/User/" +
>str(xId,3)
>LoadFromURL( cHttp, 80 , 1, , ,"GET")

Your text URL "cHttp" contains the port that you want to use: "8082", but 
in your LoadFromURL(cHttp, 80, 1, , , "GET") function call you explicitly 
specify a different port to use, "80", which supersedes the port specified 
in the URL.

So you have several options, all of which will work:

LoadFromURL(cHttp)
LoadFromURL(cHttp, 8082)
LoadFromURL(cHttp, 8082, , , , "GET")
LoadFromURL(cHttp, 8082, INTERNET_COMMUNICATION_PUBLIC, , , "GET")

Because any specified parameters in LoadFromURL() supersede any options 
specified in the text URL -- and any options specified in the text URL 
supersede the default options for omitted parameters -- it makes sense to 
only specify any parameters that differ from the default values and that 
aren't already explicitly specified in the text URL.

I also recommend to RTFM for LoadFromURL(), as it explains the various 
parameters and default values, as well as the URL format.

Hope that helps,

Andreas

Andreas Gehrs-Pahl
Absolute Software, LLC

phone: (989) 723-9927
email: Andreas.GP@Charter.net
web:   http://www.Aerospace-History.net