Joshua Slive wrote:
On 8/31/05, Octavian Rasnita <orasnita@xxxxxx> wrote:Hi, There is a client that sends data to a port on my server, and I need to get it and store it into a database. The data is not in HTTP format, so it doesn't use methods like GET or PUT, but only the data. Can I use Apache to put it to listen on that port and create a program that get the data and store it into a database?Yes, but only by writing a custom protocol module, which is not a simple thing to do. You would be much better off using a simple scripting language like python or perl to listen on the port and slurp the data.
If you decide to use httpd, however, I strongly suggest you look at mod_echo as a trivial protocol module example. Bill --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx