Options

ANTSLOAD 16 - Simulating file uploads

Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
edited September 9, 2004 8:41AM in Knowledge Base
Scripting file uploads in ANTS Load

• Date: 1 Sep 2004
• Versions affected: 1.5x, 1.6

ANTS Load does not support the automatic scripting of file uploads in its' script recorder because it can only support name-value pairs for posting data. and has difficulty with multipart/form-data posts required to upload a file.

Symptoms of this issue include:
  • Script recorder simply hangs while recording a multipart post
  • Invalid script produced; the script may contain invalid characters

If this has become an issue for you, please request the latest update from support@red-gate com.

We have solved these problems by fixing the ANTS Load proxy, which was not forwarding the correct number of bytes to the server from the client, affecting any client request over 1024 bytes (file uploads particularly affected) and issuing HTTP/1.1 100 CONTINUE to support browsers with the allow HTTP 1.1 through proxies option set.

To alleviate the scripting syntax problems, implemented SETPOSTDATA for multipart/form-data posts to post the requests in raw bytes and Base64 encoding any non-printable characters so that the script will compile correctly.
Sign In or Register to comment.