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

leeand00
  • 4,869
  • 15
  • 69
  • 110
  • 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 Answers5

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.

Dave Drager
  • 8,375
  • 29
  • 45
  • 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
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.

Zak
  • 1,032
  • 2
  • 15
  • 25
1

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

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
1

You can always use RFC1149 to move bits.

qux
  • 371
  • 2
  • 7
0

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