Results 1 to 5 of 5

Thread: Data over HTTP

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    England
    Posts
    135

    Data over HTTP

    Hi,

    Not sure if I've got the right forum, but hope so. I have a VB6 program which I want to interface with an MS SQL database. Rather than leaving the port open for the database on the firewall I thought it might be better to have the VB app call an ASP page which can then query the database on the server and return the data that way?

    Is this possible and does anyone have any views/advice on querying the DB in this way or querying it direct?

    I'd be grateful for any help possible with this.
    Cheers,
    Sparky

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Data over HTTP

    Yes -- have a look at the link in my signature which shows how to send HTTP Post requests using VB6. You can send variables and even isntructions in the body o f post request which the ASP application can pick up and use to access the database, it can even return a status notice depending on whether your applications request failed or succeeded.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    England
    Posts
    135

    Re: Data over HTTP

    Thanks for replying - when I try to run this in VB6 I get an error about licensing, is there something I need to do before I can use it, or is it because I am trying to use it through the VB editor?

    Thanks,
    Sparky.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Data over HTTP

    What version of VB are you running?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    England
    Posts
    135

    Resolved Re: Data over HTTP *RESOLVED*

    **Apparently there is a fix to stop that problem, which is available from microsoft - thanks anyway**

    Sorry, forgot to mention that - I am running VB6 Professional.

    Thanks for replying,
    Sparky.
    Last edited by Sparky; Oct 11th, 2005 at 11:43 AM. Reason: Resolved

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