Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Communicating with Web Site
Message
De
29/01/1999 18:16:29
 
 
À
29/01/1999 18:10:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00182062
Message ID:
00182073
Vues:
14
>>>>I need to process a file through a web site. The web site will return a value for each record processed. I have been given access to 2 methods to accomplish the goal:
>>>>
>>>>1) Send the information via TCP/IP communication to the web site and get the return value
>>>>2) There is a C exe that I can call, sending it the information and letting the C routine call the web site and return the value to Foxpro
>>>>
>>>>Any suggestions on the best method?
>>>>
>>>
>>>
>>>Rick Strahl's wwIPStuff has a method (HTTPGet) that takes a URL as a prameter and returns the contents of the page to a string. So to get the HTML for UT's front page into a string:
>>>
>>>oIP = CREATEOBJECT('wwIPStuff')
>>>lcPAgeString = oIP.HTTPGet("http://www.universlathread.com")
>>>
>>>You can download this class from here in the files section.
>>
>>
>>If I can't get to the web page, is there a way to call an external C program and get a value?
>>
>>Pf
>
>I don't understand. What value is a C program going to return to you?
>
>You can build a COM object with C++ and call it from VFP...

A full explanation of the is that I will have a table of account numbers. I need to pass the account number to another system that will return a status code and some other info about the account. There is no way to access the status directly. This is something that must be done quickly (by Mon.). No time to build a COM object.

The best I can do is call the C program that is in use now. The process is normally called via a web page. This is a 1 time shot process for this particular file.

TIA,

Perry

(On an infant's shirt): Already smarter than Bush
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform