Re: Simple Question... I hope

[email protected] ("Sean Davis")
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
On Tue, Jun 3, 2008 at 1:00 PM,  <[email protected]> wrote:
> Ok, I'm uploading a file to a 3rd party. The file is being uploaded to
> an https site with a cgi extension. The 3rd party finally provided me
> with a snippet of their Perl code. They see the attempt coming
> through, but there is no data. I understand how all this works... i
> think there's just a dot i'm not connecting somewhere. PLEASE HELP...
> Thanks in advance!!!
>
> In my html file I have...
> <font size="4" color="#000066">File: </font><INPUT TYPE="file"
> NAME="XML_DATA" size="47"></p>
> <INPUT TYPE="submit" NAME="submitButtonName" VALUE="Submit Query"></p>
>
> See below:
> Here is the Perl snippet of what they're doing...
>
>    my $query = new CGI;
>    my (@data) = $query->param;
>    my (%data,$key);
>    foreach $key (@data)
>    {
>      $data{$key} = $query->param($key);
>      &logXmlOrder ("key($key) data($data{$key})");
>    }
>    read(STDIN,$xmlcontent,$ENV{'CONTENT_LENGTH'});
>    &logXmlOrder ("Content=$xmlcontent");
>
> Here is what they're telling me is logged on their side:
>
> key(submitButtonName) data(Submit Query)
> Content=

You didn't tell us what the "form" tag looks like in your code.  It
much be a post and of enctype "multipart/form-data".

Sean
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.