Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unclear XMLHttp behavior
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01600581
Message ID:
01600590
Views:
63
>Now the problem: I always receive an OK 200 connect but get an internal server error message from the web site, UNLESS I have opened a browser and previously gone to the SAME exact URL with the SAME exact string. Once I have done that, I could close the browser and my code works fine. But since there are about 1000 lookups a day, that is not a great plan <s>.
>
>XMLHttp is supposed to work with the machines WINET stack and use the same HTTP call as a browser, but something is off here.
>
>What am I missing?
>

A lot of sites require a cookie to be set first. You can usually make this happen just by getting the main page from the site. So at the top of the code, get that page (and ignore it), then do the rest of your processing.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform