Results 1 to 4 of 4

Thread: inet over LAN?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    378
    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.

  2. #2
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    378
    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!

  4. #4
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    Let me think about this. It's a very interesting question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width