CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Vb Html Post

  1. #1
    Join Date
    Dec 2007
    Posts
    40

    Unhappy Vb Html Post

    Hey!

    I have a MS Access program, that would need to send a HTML POST to some other program and then be able to receive info back. how can i do this with VB code? Let's say that the POST should be sent after clicking a button and the POSTed info should be "username" and "Password". I would then send back info on if theres such a user with such a password....

    thanks bigtime!

  2. #2
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: Vb Html Post

    If you are trying to pass some variables to a running VB6 program, you probably would not use HTML and POST

    HTML and POST are normally reserved for Websites (even though you could be running an internal Intranet which operates like a website if you wish)

    If you simply want to pass some info to a running program, even if it is on another machine, the easiest way is to write the variables to a file which the running program could pickup.

    The running program would need to either be "WATCHING A DIRECTORY" to see if data has been passed (perhaps in the form of a text file), or would check a known place every nn seconds or milliseconds to see if there has been data "posted"

    WATCHING A DIRECTORY is a better method as an interupt is raised only if there is a change in the directory

    You can find several examples of WATCH DIRECTORY at www.planetsourcecode.com I should think

    heres a good example

    http://www.planetsourcecode.com/vb/s...61052&lngWId=1


    Writing a file to another machine is reasonably simple - Use either the IP Address or Computername to prefix the file name (and you must have permission to write to that machine - eg, Directory must be shared)

    Hope thats what you are looking for
    Last edited by George1111; November 2nd, 2008 at 12:26 AM.

  3. #3
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Vb Html Post

    Sounds like he wants to log onto a website, which isn't allowed in most cases, which is why we don't post samples. It's against the AUP to automate a login to CodeGuru.com for instance.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    Dec 2007
    Posts
    40

    Re: Vb Html Post

    ok, I understand your concerns, but, let me assure you, I don't want to log onto a website or pass anything to a VB6 program. I want to pass them from a Microsoft Office Access program to a ERP software, which is able to handle such requests (previously it was using open TCP/IP) via a internal customization programming language and select + send back information, selected from the database.

  5. #5
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: Vb Html Post

    Since your ERP software is designed to handle exactly what you want, why are you posting to CodeGuru to solve a problem which is clearly resolved and in the hands of the ERP software provider

    Dont you think it might be a good idea to contact them - they just may know what you need to do

    On the other hand, we could all try to recite all the known methods of communicating with all the known ERP systems , since you again fail to give even basic information about what you are trying to do

    Basic information - What is the ERP system called ????

    When you find out the name, call them

  6. #6
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Vb Html Post

    previously it was using open TCP/IP
    that still works fine with vb6, but has little to do with communicating with Office Apps.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

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

Featured