How can I pass a recordset back to a client via HTTP

Essentially, I want to creat a data acquisition layer that can be accessed via HTTP.  The client passes in a query and the data acquisition layer (apache 2 module) queries the database and retrieves a dataset.  The question is, how to return the data to the client.  It's essentially an array of data that I can encode, but how do I separate the fields and rows, for example.  Thanks in advance.
towxAsked:
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.

quiklearnerCommented:
the easiest way will be to format the results in XML.  If you use standard components (ADO, DAO) to anaylize the data, you will need to format the XML specifically to the ADO/DAO specs.
Eduard GherguLeader SibiuCommented:
Hello!

First of all, what kind of apache module you're using and what kind of recordset you're retrieving? What kind of database you're using?
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

towxAuthor Commented:
I'm writing an Apache 2 module in C that queries a MySQL 5 database.  I simply want to pass back a recordset to a proprietary client app as simply and efficiently as possible.  XML is great, but it's a lot of overhead.  Passing it back in binary using Base64 encoding seems to be the best way; however, what format is used as field/record separators for example?
Eduard GherguLeader SibiuCommented:
Hello!

In that case you cannot use Microsoft technologies indicated by quiklearner...  In order to use Base64 encoding you have to create a text file from your array of data (go thru and concatenate records in a loop using ";" or "|" as a separator for fields for example). This text file will be encoded and sent. The client must decode the file and parse it in order to re-create the array. So, using xml could be a better solution...

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
towxAuthor Commented:
Thanks
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

From novice to tech pro — start learning today.