in reply to FILE UPLOAD

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

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.