P
paktsardines
Dear all,
I have painted myself into a fairly bizarre corner for a fairly
bizarre client. I would be grateful if someone could please help shed
some light on what is going wrong.
Here's the situation in brief:
A. A company has a number of office machines (OMs) that can access the
company's intranet through a browser.
B. Their intranet web server (IWS) provides a web interface containing
a CGI upload form for uploading files from the OMs to a remote web
server (RWS) for processing, the output of which is to be sent back to
the IWS.
C. The OMs are not permitted to access the RWS directly.
Suffice to say that [I think] any upload from an OM has to be done in
two steps. The first is to upload the file to the IWS. The second
step is to upload the file from the IWS to the RWS. ie:
OM -> IWS -> RWS
The first step is working fine using the CGI upload command.. That
is, a user can upload the file from their office machine to a
directory on the IWS.
The second step is causing me grief. I was very much hoping that this
could simply be done by passing the upload formdata on the IWS into a
curl command for the RWS, but the file won't upload and I'm getting no
errors in the log.
I suppose my question is, is my strategy workable, or is there known
problems with CGI when uploading from one web server to another (as
opposed to uploading from one filesystem to a web-server (as in the
first step))?
Is it possible that I'm breaking the 'upload' filehandle/filename
structure by simply passing it in as formdata to curl?
I've already thrown many hours at this problem and I would like to
know if I should continue throwing more.
Thank you for any suggestions/advice.
I have painted myself into a fairly bizarre corner for a fairly
bizarre client. I would be grateful if someone could please help shed
some light on what is going wrong.
Here's the situation in brief:
A. A company has a number of office machines (OMs) that can access the
company's intranet through a browser.
B. Their intranet web server (IWS) provides a web interface containing
a CGI upload form for uploading files from the OMs to a remote web
server (RWS) for processing, the output of which is to be sent back to
the IWS.
C. The OMs are not permitted to access the RWS directly.
Suffice to say that [I think] any upload from an OM has to be done in
two steps. The first is to upload the file to the IWS. The second
step is to upload the file from the IWS to the RWS. ie:
OM -> IWS -> RWS
The first step is working fine using the CGI upload command.. That
is, a user can upload the file from their office machine to a
directory on the IWS.
The second step is causing me grief. I was very much hoping that this
could simply be done by passing the upload formdata on the IWS into a
curl command for the RWS, but the file won't upload and I'm getting no
errors in the log.
I suppose my question is, is my strategy workable, or is there known
problems with CGI when uploading from one web server to another (as
opposed to uploading from one filesystem to a web-server (as in the
first step))?
Is it possible that I'm breaking the 'upload' filehandle/filename
structure by simply passing it in as formdata to curl?
I've already thrown many hours at this problem and I would like to
know if I should continue throwing more.
Thank you for any suggestions/advice.