|
-
Apr 4th, 2001, 04:03 PM
#1
Thread Starter
Hyperactive Member
What's wrong with this:
Inet1.Execute "http://Kira_Roark/kiosk/apr1/addinfo2.asp", "Post", "UD=22"
"Kira_Roark" is a machine on my LAN.
Goal: to mimic a post from a html page to an asp page using the internet transfer control.
I made a test.html page which contains a text box with the one field (UD) I'm attempting to pass to the database. When I enter a value in this box and submit it to the asp page the information is sent to the database....bascially everything is o.k. with the database and asp page.
When I insert the above code into the onclick event of a button and check the "Inet1_StateChanged" it gets stuck on "5" which is "the control is sending a request to the host computer".
Would this have something do with the fact that I'm posting over an Intranet LAN vs. the WWW?
Should I connect directly to the database instead and update recordset instead?
Why confuses me is that POST works through the browser, but not using the inet control in v.b.
Any help would be greatly appreciated.
-
Apr 4th, 2001, 06:28 PM
#2
Frenzied Member
It should not make a difference. They are both from microsoft. They include the same methods and properties. Give me a little more information and possibly a sample code.
-
Apr 5th, 2001, 09:54 AM
#3
Thread Starter
Hyperactive Member
jjortiz you're right the LAN issue is a non-issue.
What I have is the inet control on a form and I'm trying to pass data from the form to an ASP page which stores it in a database.
This works:
Inet1.Execute "http://kira_roark/kiosk/apr1/addinfo2.asp?UD=22", "GET"
Of course this only works when I alter the asp page from request.form to request.querystring.
When I switch the ASP page back, this doesn't work:
Inet1.Execute "http://kira_roark/kiosk/apr1/addinfo2.asp", "POST", "UD=88"
I know I could stick with the GET, but it isn't right. What is wrong with my syntax on the POST? (I am dead certain that this isn't an ASP problem, becuase I made sample HTML forms to submit the data using a post and that works fine).
Thanks!
-
Apr 5th, 2001, 09:55 AM
#4
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
|