Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use a different Port
Message
From
25/05/2004 12:19:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
How to use a different Port
Miscellaneous
Thread ID:
00906994
Message ID:
00906994
Views:
42
Hi all,

This use to work without the custom port address. When I changed the port address to 5050 for my test web server, I get this error:

12029 A connection with the server could not be established

I can run the link with the modified port in IE without problem.
oHTTP = createobject('wwHTTP')
oHTTP.HTTPConnect("192.168.0.22")
oHTTP.nHTTPPort = 5050  && custom port

*** Initialize the variables that will be filled by HTTPGetEx
lcHTML=""     && Data buffer 
lnText=0      && Size of the output to return - 0 means autosize

*** Send the POST data and retrieve HTTP result
lnResult =oHTTP.HTTPGetEx("/EOSXMLServer/bin/wc.dll?XMLProcess~GetBills~&FromDate=11/05/2003",@lcHTML,@lnText)
IF lnResult # 0
   ? lnResult, oHTTP.cErrorMsg
   RETURN
ENDIF
ramil
~~ learning to stand still
Reply
Map
View

Click here to load this message in the networking platform