Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

The company where I work has a desktop application that uploads files to a site without any of the aforementioned protocols.

They use CGI on the backend, so is it possible that they are uploading the files via a C++ cgi-script?

Is there an Apache module for calling CGI programs? (there has to be...what is it?)

share|improve this question
    
what do you want to achieve? Build a server that accepts the same files? Or upload files automatically to that site? Or upload files manually without using that site? They probably use HTTP POST for sending files (like any website does where there are file upload boxes) and there are tools for all the things I wrote above. I just don't want to write about all of them in my answer :) –  mihi Nov 19 '09 at 18:43
1  
Why do you suspect c++ and not perl, php, python, etc... –  Zoredache Nov 19 '09 at 18:51
    
+1 to counter the down vote that somebody gave without any explanation as to their reasoning for the down vote. –  Bryan Nov 20 '09 at 16:30
    
@Zoredache Because everything they do is written in C++. –  leeand00 Nov 24 '09 at 20:31

5 Answers 5

up vote 4 down vote accepted

Apache uses POST and GET to transfer data. It is probably POSTED to apache, which then sends it to the executable which could be C++, PHP, PERL, or any other number of programming languages.

Your question should be "uploading via Apache" - Apache does not contain any files, the filesystem does.

The apache module for cgi is called, surprisingly, mod_cgi.

share|improve this answer
    
Dave, I checked in their configuration and this seems to have something to do with it. I'll have to read up further on the mod_cgi module. –  leeand00 Nov 24 '09 at 20:34

Start on the webserver where the request is being processed. It could be dwarfs with punchcards shouting over tin can's connected by strings for all anyone here knows. Look at the webserver, and start tracing the request.

share|improve this answer
    
heheh, yes there's a distinct possibility Zak ;) –  leeand00 Nov 24 '09 at 20:33

Hmmm... Why don't you ask them?

share|improve this answer
    
They're too busy. They told me just to look around, without really explaining anything. –  leeand00 Nov 19 '09 at 18:29
    
Nobody's that busy. It took longer to type this that it would take to answer your question, if properly phrased. –  John Gardeniers Nov 19 '09 at 20:54
    
They write everything in C++. Yes, they're that busy. :) –  leeand00 Nov 24 '09 at 20:32

You can always use RFC1149 to move bits.

share|improve this answer

If you want to simply automate uploads, use iMacros for Firefox - works great! https://addons.mozilla.org/en-US/firefox/addon/3863

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.