Re: Simple Question... I hope

2008-06-04 Thread risadmc


Reply to Owen:

I'm the client. The cgi script is on the 3rd party's server. I'm just
creating a form that will post a file.

Reply to David & Sean:

https://somedomain.com/abc123/cgi-bin/
thescript.cgi" enctype="multipart/form-data">

am I completely on the wrong track?

Thank you for all your help!!!
Risa


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Simple Question... I hope

2008-06-04 Thread Sean Davis
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...
> File:  NAME="XML_DATA" size="47">
> 
>
> 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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Simple Question... I hope

2008-06-04 Thread David Dorward


On 3 Jun 2008, at 18:00, [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...
File: 




I'd suspect you aren't setting the enctype attribute in your form  
element correctly, but you didn't provide that bit of the code, so it  
is hard to say.


http://www.w3.org/TR/html4/interact/forms.html#h-17.3

You also appear to be using  (which is deprecated) where you  
should have a  and your HTML is invalid due to a missing start  
tag for a paragraph.


--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: Simple Question... I hope

2008-06-04 Thread Owen
> 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...
> File:  NAME="XML_DATA" size="47">
> 
>
> 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=





Are you a server, or just a client to a server?

I am sorry but I don't understand what you are doing.

Normally, the actioning cgi script is on the server and you call that to
upload your file.

If you have access to your server, have a look at
http://search.cpan.org/~gunnar/CGI-UploadEasy-0.11/ for the easiest means
for uploading files


Owen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Simple Question... I hope

2008-06-04 Thread risadmc
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...
File: 


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=


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/