1

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?)

4
  • 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, 2009 at 18:43
  • 1
    Why do you suspect c++ and not perl, php, python, etc...
    – Zoredache
    Nov 19, 2009 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, 2009 at 16:30
  • @Zoredache Because everything they do is written in C++.
    – leeand00
    Nov 24, 2009 at 20:31

5 Answers 5

4

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.

1
  • 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, 2009 at 20:34
3

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.

1
  • heheh, yes there's a distinct possibility Zak ;)
    – leeand00
    Nov 24, 2009 at 20:33
1

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

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

You can always use RFC1149 to move bits.

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .