Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows App talking to a Perl / CGI script? 1

Status
Not open for further replies.

Acidon

Programmer
May 1, 2004
21
Hey guys, it's been a while since i've been here to pick your brain. I am hoping to at least get pointed in the right direction..

Here is my problem: When someone is entering registration info into my application, I want to have it run a perl/cgi script on my website/server that will check against the MySQL DB I have setup for this.

Either that, or less desirably, find a way for my application to talk directly to the MySQL db. The DB is on my website which is hosted elsewhere, so I am not sure how to go about this, assuming that it is possible.

I am very fluent in PERL, which is why I was hoping to go that route, but I am guessing it would be easier if I wanted my desktop app to talk to a C# program on the server?

When it gets to interacting with things over the internet I am just completely clueless.

Any help at all would be extremely appreciated. You guys have been awesome with my past questions, so thanks again.

Acidon
 
Me again, I wanted to add that I am wanting to send information TO the PERL script and have it send back a response back to the application.

That, in essence, is what I am hoping to accomplish. If you know if this is possible, or how it's done, or where I could go to find out, please let me know.

Even knowing the technical terms for something like this would help a lot as I search for answers. Thanks! :)
 
Me yet again :)

Having not received a response, I wanted to let you all know that this information would not be used maliciously. I know that's easy to say, but it's true.

The user would be aware that this communication would be happening, since this is merely a part of the registration process for my software.

This is really holding me up.. and maybe I will need to figure out a better way that doesn't require this type of communication across the internet. I am searching for the answer, even obscure ideas that may turn the ol' lightbulb on for me.

Or, maybe this is such a simple question that I am viewed here as a complete moron. :) Either way, I will appreciate any responses of any kind.

Thanks all,
Brian (Acidon)
 
You may want to look into System.Net.HttpWebRequest and System.Net.HttpWebResponse. You can fire them from a windows application and you can format the request to send the information to your perl script and then use the Reponse object to find out the results.

----------------------------------------

TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top