You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bronagh McElduff <Br...@mobilecohesion.com> on 2005/06/22 15:26:46 UTC

HTTP Request - body

Hi,

I would like to specify the body for a HTTP request directly as is 
possible with the SOAP-XML/RPC request i.e.

--cbdaecc3-2559-44df-9724-d1e3efae9f7a^M
Content-Type: application/xml^M
Content-Transfer-Encoding: binary^M
^M
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN"
          "http://www.wapforum.org/DTD/pap_2.0.dtd">
<pap>

  <push-message push-id="integrationpaptestservice-abcdef" 
replace-push-id="ghijkl">
    <address address-value="447843493449"></address>
  </push-message>

</pap>^M
--cbdaecc3-2559-44df-9724-d1e3efae9f7a^M
content-id: <CID1119434853>^M
content-type: text/vnd.wap.si^M
^M
<?xml version='1.0' ?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
                    "http://www.wapforum.org/DTD/si.dtd">
<si>
    <indication href="http://www.ents24.com">Hey there2</indication>
</si>
^M
--cbdaecc3-2559-44df-9724-d1e3efae9f7a--^M

However, when I saved the above request to the file papRequest.xml and 
uploaded it through the JMeter HTTP Request GUI., the file is send as an 
attachment rather than its contents being used as the body of the 
request (see snoop below).  Is there some way to do this?  Or 
alternatively, is there a means to specify the content types in the 
header of an XML request?

Thanks in advance,
Bronagh


POST /mgs/HttpServer/pap.application?username=newcp2&password=password 
HTTP/1.1
Connection: keep-alive
Content-Length: 1027
Content-Type: application/x-www-form-urlencoded
User-Agent: Java/1.4.2_07
Host: 10.12.10.43:8184
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
-----------------------------7d159c1302d0y0
Content-Disposition: form-data; name=""; filename="C:\\Program 
Files\\jakarta-jmeter-nightly\\bin\\testfiles\\Hydra\\pap\\papRequest.txt"
Content-Type:
--cbdaecc3-2559-44df-9724-d1e3efae9f7a^M
Content-Type: application/xml^M
Content-Transfer-Encoding: binary^M
^M
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN"
          "http://www.wapforum.org/DTD/pap_2.0.dtd">
<pap>


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org