|
-
Jul 12th, 2000, 08:16 PM
#1
Thread Starter
New Member
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.
-
Jul 12th, 2000, 10:17 PM
#2
Addicted Member
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]
-
Jul 12th, 2000, 10:48 PM
#3
Thread Starter
New Member
thanks
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|