ANTSLOAD 16 - Simulating file uploads
Brian Donahue
Posts: 6,590 Bronze 1
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:
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.
• 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.