[Webtest] [webtest][JIRA] Created: (WT-432) Add contentType attribute to
<invoke> step
Andreas Hartmann (JIRA)
Andreas Hartmann (JIRA)" <noreply@canoo.com
Mon, 2 Jun 2008 14:23:29 +0200 (CEST)
Add contentType attribute to <invoke> step
------------------------------------------
Key: WT-432
URL: http://webtest-community.canoo.com/jira/browse/WT-432
Project: WebTest
Type: New Feature
Versions: Future versions
Reporter: Andreas Hartmann
Attachments: patch-contentType.txt
The patch allows to add a contentType attribute to the <invoke> step to set the Content-Type header of the request. This makes sense for PUT and POST requests in REST-style applications (e.g., applications implementing the Atom Publishing Protocol). Usage example:
<invoke url="..." contentFile="logo.png" contentType="image/png"/>
BTW, a more generic approach would be to set arbitrary headers:
<invoke url="..." contentFile="logo.png">
<header name="Content-Type" value="image/png"/>
...
</invoke>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira