Results 1 to 4 of 4

Thread: Interfacing VB with CGI scripts

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Netherlands Antilles
    Posts
    66

    Exclamation Interfacing VB with CGI scripts

    Hi Guys,

    I am looking for a way to send messages to a web server running CGI/ PERL scripts.

    instead of using my web browser to go to the website and enter my information.

    I would like to do this in VB6.0

    Is there a way to do this?
    Example:

    <html>
    using the form post method >
    <html>
    <form action="cgi-bin/post.cgi" method="post">
    <input name="phonenumber" type="text" size=10>
    <input name="sms" type="text" size=30>

    </form>
    </HTML>

    click on the submit button and info is posted to the server.

    I am sure using Winsock this can be achieved.

    please let me know your findings.

    Thanks in advance.
    Elpower

  2. #2
    New Member
    Join Date
    Jul 2002
    Posts
    4

    hi how to to this in vb.net?

    the same i try too

    i want with vb.net to "fill out" a form and send the values with POST back to the server.

    but how?

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    For the POST HTTP verb, you set the Content-length HTTP header to the size of the data you're going to send, then put the same name/value string you'd add to the URL for a GET verb after the double CRLF that ends the HTTP headers. There's RFCs that'll explain this better than I can.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4
    Hyperactive Member brenaaro's Avatar
    Join Date
    Sep 2001
    Location
    Montreal, Canada
    Posts
    391

    Tutorial?

    Hmm..where can I get these RFCs?
    Or, where can I get a "Beginners Tutorial" on how to do this kind of stuff? I'm really interested in learning this so if you know of a good tutorial please let me know.
    And I, for one, welcome our new insect overlords. I'd like to remind them as a trusted TV personality, I can be helpful in rounding up others to toil in their underground sugar caves.

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