calling cgi on server from vb5

I use the following code in a loop to send e-mails to a list of people.  The cgi (perl5) contains all the information except the names.

Link = "" & name
ShellExecute Me.hwnd, "Open", Link, 0&, 0&, 5

The problem is that the browser keeps coming up and prevents other activity on the computer.  Is there a way to call a cgi file without the browser displaying on my screen?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

please see search the complete apps section for

Internet ActiveX Controls - Retrieve HTML pages from the Net - Post data to HTTP server
Use the Internet Transfer Control and execute a Post.

From Books Online:

This same query could be sent using the Execute method as shown below:
Dim strURL As String, strFormData As String
strURL = "//"
strFormData = "find=Hangzhou"
Inet1.Execute strURL, "POST", strFormData

If you are expecting a result back from a server (as in the example above), you must use the GetChunk method to retrieve the resulting HTML document.
You could use add the Microsoft Internet Controls to your program, hide it on your form and do:

Dim lName As String

lName = "your user name(s)"

WebBrowser1.Navigate "" & lName

Do While WebBrowser1.Busy = True

The CGI will execute and you will not see a browser...

Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

donb1Author Commented:
I am running vb5.  I have sp3 installed.  sdland1's answer requires vb6.

When I try to use the Internet Transfer Control, I get an ocx file out of date.  It runs on my computer, but not on others.  I would like to use this control, but don't know what to do to make it work on other computers.  I use the setup wizard in vb5 to generate the application.
donb1Author Commented:
msinet.ocx is the one that reports as out of date.  How can I make it OK?
This method uses winsock. If your environment provides winsock control that is enough. A direct call to web server. Here the coding. Place a winsock control on the form and write this function.

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim response As String
Winsock1.GetData response, vbString
End Sub

Sub ExecCGI(iden as String)
Winsock1.RemoteHost="your server ip"
Winsock1.SendData "Get /cgi-bin/yyy.cgi?" & iden & " HTTP/1.0" & vbCrLf & vbCrLf
End Sub

Execute the procedure ExecCGI with every identity.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
donb1Author Commented:
Haven't had time to try this yet, but it looks like it should work.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.