Permalink
Browse files

Adding test content.

Signed-off-by: Sam Pullara <spullara@yahoo.com>
  • Loading branch information...
1 parent ee701b8 commit 22fbba502f7961f4105a886337b872f81e6febd0 @esjewett esjewett committed with Jul 31, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 tarpipe/tarpipe.transaction.xml
@@ -87,6 +87,9 @@
response.object = local_request.post(content).response;
} else {
+
+ var content = "\r\n--AaB03x\r\nContent-Disposition: form-data; name=\"title\"\r\n\r\n"+"title test";
+ content += "\r\n--AaB03x\r\nContent-Disposition: form-data; name=\"body\"\r\n\r\n"+"body test"+"\r\n--AaB03x--\r\n";
message.action = request.path("start").path(workflow_id).url;
OAuth.SignatureMethod.sign(message, local_accessor);
@@ -102,7 +105,7 @@
}
}
- response.object = local_request.contentType("multipart/form-data; boundary=AaB03x").header("Content-Length",0).post().response;
+ response.object = local_request.contentType("multipart/form-data; boundary=AaB03x").header("Content-Length",content.length).post(content).response;
}
]]></execute>
</insert>

0 comments on commit 22fbba5

Please sign in to comment.