Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Webbrowser41 post string
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00552593
Message ID:
00553082
Vues:
18
Hello,

Thanks for the reply. I think I need to clarify a bit. First I load a page in the browser control window, which is a form asking for input with a submit button on it. The HTML code indicates that it is running a CGI script using the POST method when the SUBMIT button is clicked. I would like to capture the string sent back to the server when that button is pressed, which would include a URL, a CGI reference, and a list of parameters after the '?'. The BeforeNavigate and DownloadBegin events don't seem to fire at this time (which surprised me).

The idea is that I would like to have VFP send this request to their server stuffed with dynamic data then parse the results with VFP. I have done this on other sites, but they leave the request string intact in the address bar so it was simple. This site only shows the URL without the passed parameters, so I cannot see the formatting. Failing a browser control solution, I will have to dig into the HTML code and investigate the form construction which I can do, but I thought this would be easy. I am surprise by the general lack of response to this question, I thought it would have been something that lots of FoxHeads would have conquered already.

Bob

>>Hello All
>>
>>I am using the _WebBrowser41 control and wish to retrieve the string sent after the submit button is presses using the post method. I thought I could use the beforenavigate method to capture this but it does not seem to fire.
>>
>>Thanks in advance
>>
>>Bob
>
>You mean the MS web browser control?
>
>Did you try the BeforeNavigate2 or DownloadBegin events? With BN2 you have to use Navigate2 to open a specified url.
>
>I tested the DownloadBegin and it works as advertised.
>
>HTH
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform