[lug] CGI uploading via client-end code

caldodge at fpcc.net caldodge at fpcc.net
Thu Apr 26 06:29:24 MDT 2001


"D. Stimits" wrote:
> 
> Out of curiosity, are you talking about a standalone program that won't
> run from a web browser at all? And the server to be uploaded to is
> running Linux? I'm not quite clear on what the requirements are, the
> description seems a bit general.

I'm looking for the simplest way to securely transfer blocks of data (10-60k in
size) from a Microsoft Access application, to a server (which would record who,
when, what, etc.), to another Access application (or, optionally, to a program
which would import the data into PostgreSQL).

It _had_ seemed to me that I could use wininet.dll plus VBA to handle the
Access end (after exporting the desired records to a text file), and send the
file (plus login information) via HTTPS to a PHP-based middleman.  So far I'm
finding only frustration (aside from cgiupload.py - and for some reason I can't
see the effective difference between that program (which works) and my code
(which doesn't).  I guess I have to try to grok the appropriate RFC _again_ -
maybe enlightenment (the concept, not the program) will strike me this time.

I suspect I _might_ be able to use some function of IE4 or IE5 to do this, but
some of our customers don't have either version of IE (so wininet.dll is the
lowest common denominator) - AND I've learned (the hard way - is there any
other?) to use as little of Microsoft's library as possible (don't want DLL
Hell (tm), ya know).

My other option is the send the data as one BIG POST variable, and that's
looking more likely now.

Sigh ... why can't programming be easy?

;^)

Calvin

-- 
Calvin Dodge
Certified Linux Bigot (tm)
http://www.caldodge.fpcc.net



More information about the LUG mailing list