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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write data to webserver

Status
Not open for further replies.

memememememememe

Programmer
Jul 24, 2007
14
AU
I'm not sure if this is the right forum for this topic, perhaps someone could suggest where I should post this thread instead...

I would like to write a small amount of data from my program to a webserver. I'm gathering I would use a winsock control and the POST method.

I can handle the coding of this, my real query is how to set up the webserver to accept the data. My knowledge so far is that I need a cgi script to handle the request, does this then use mysql to store the data? I'm kinda lost on this one so any help will be greatly appreciated.
 
I personally would use server-side scripting rather than an executable for this. If you're familiar with Visual Basic, then ASP using VBScript shouldn't be too difficult for you.

Lee
 
I'm not creating a program specifically to do this, it will be a small amount of data from the program I want to write to the webserver. I don't want to use asp & vbscript but thanks for your input.
 
Do you want to post to the webserver itself or to an associated database?

If you want to actually post files to the webserver (eg HTM, ASP, CSS, JS files) then try an Inet control (Microsoft Internet Transfer Control, in MSINET.ocx), and use the FTP PUT and GET commands.

Posting to a database will depend on the actual database involved and the permissions set on the DB server. Many webhosts do not permit any db access except via server-side stuff (ASP. PHP etc) due to security concerns

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Well I guess I would want to post to a database but as you can probably guess I am quite lost on how to.
 
If the webhost allows remote access to the db, then just use normal ADO via MySQL ODBC connector. Details:
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top