LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-27-2005, 03:07 AM   #1
rj1
LQ Newbie
 
Registered: Feb 2004
Location: Australia
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Sending and interpreting data using http-post


Hello
I have a database of customer details which records their customer number, name, address, phone, email, etc,etc. I want to send this data via http-post and then interpret it on the other end using a cgi script. The computer I am sending from is running Debian Linux and the receiving system is Windows 2003 Server. I just need to be able to send this data and save it in a text file with each item on a separate line. From there I can read that text file and input the customer into another database on the other machine.

Thanks
rj1
 
Old 05-28-2005, 01:31 AM   #2
morph_ind
Member
 
Registered: Feb 2005
Distribution: fedora 2/suse
Posts: 38

Rep: Reputation: 15
hiii
which database r u using ,in my opinion if u r using mysql then u can directly create a php script which will insert ur user information in the tables of ur database u will find plenty of tutorials on the net ,so no need of using a textfile in b/w
 
Old 05-28-2005, 01:36 AM   #3
tumana
Member
 
Registered: Mar 2004
Location: Belgium
Posts: 102

Rep: Reputation: 15
Quote:
Originally posted by morph_ind
hiii
which database r u using ,in my opinion if u r using mysql then u can directly create a php script which will insert ur user information in the tables of ur database u will find plenty of tutorials on the net ,so no need of using a textfile in b/w
I agree. PHP and MySQL work wonders together. PHP also works quite well with any db so if the Windows box is running another db program (SQL Server), PHP can still very easily insert data from input.
 
Old 05-28-2005, 03:21 AM   #4
rj1
LQ Newbie
 
Registered: Feb 2004
Location: Australia
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah if I was using MySql it would be a lot easier but I'm not. We use Dataflex which has its own database system.
I have been working on another solution using samba and just saving the customer details in the shared directory and having a cron job running on the other side that checks the directory for new files and adds them to the database.
Would still like to know how to send a HTTP POST command with the data attached. Havent been able to find any useful info on the subject.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Myself a Post solarblast LQ Suggestions & Feedback 2 03-25-2005 10:26 AM
looking for http debugger (with get/post method) tommmmmm Linux - Software 0 10-31-2004 10:33 AM
Need a shell http post program, anyone maqish Linux - Software 0 06-03-2004 05:34 AM
HTTP request parsing: POST mofofish Programming 3 12-05-2003 11:11 AM
reading & interpreting data from /dev/gpmdata Zither Programming 1 11-02-2003 08:08 AM


All times are GMT -5. The time now is 08:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration