I'm trying to upload a file through the HTTP::Request::Common using the POST method by changing the type to 'form-data' etc.. But instead of going to the next page,I'm getting an error message

"Error while sending the Email 006~ASP 0207~Cannot use Request.Form~Cannot use Request.Form collection after calling BinaryRead."

Assuming that you didn't write the VBScript (ASP) in question, I'd say that the server code is poorly written and is getting a (probably) valid HTTP request that it can't handle... probably a combination of bad assumptions by the author.

The error is saying that the server code is trying to access form fields after the request data has been "consumed" by a call to BinaryRead - likely to support the file-upload facility.

This is very unlikely to be your fault.

Thing is, even if I use the browser manually, the upload works only in IE and not in firefox.
Well that confirms it... written by fools, only tested on IE.

Whether or not there's a problem with the content of your request, it shouldn't have that kind of impact on the server-side scripts.

-David


In reply to Re: FILE UPLOAD by erroneousBollock
in thread FILE UPLOAD by Battle_Fury

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.