Click to See Complete Forum and Search --> : POST to a web form
vladmayzel
Jul 12th, 2000, 08:16 PM
Hi,
Does anyone know how to do it with POST method, not in URL line (NOT like CGIorASPprogram.ext?PAram1=aaa&Param2=bbb)
standard INET control in VB does not work as described for POST :-(
Thank you.
Regards,
Vlad.
Crypt
Jul 12th, 2000, 10:17 PM
you have to use the winsock control to send the post method (connect to the webpage on port 80, and then in the connect event send the post data). But why do you want to post the data, I've found that finding the full url to post the data with the inet control (example: inet1.OpenUrl("www.whatever.com/CreateAccount.cgi?username=fred&password=whatever&address=55+whatever+court") works just as well asctually better than the winsock way because the inet control also creates cookies which for some sites you need, ie signing up a yahoo email address, I tried it with the post method and I couldn't because the website needed a cookie to be created, but the inet control it worked fine because it created a cookie as it opened the url and the account was created successfully.
[Edited by Crypt on 07-12-2000 at 11:20 PM]
vladmayzel
Jul 12th, 2000, 10:48 PM
yep, it will do in general cases but sometimes POST method is the only one allowed by the application which processes the form. Also Post may handle more data as I understand.
Anyway thank you for the answer.
Best wishes,
Vlad.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.