[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Generating a HTTPS header & calculate the body length

Subject: Generating a HTTPS header & calculate the body length
From: "Khorasani, Houman" <houman_khorasani@xxxxxxxxxxxxxx>
Date: Wed, 3 Aug 2005 17:39:31 +0100
calculate content length
Hello,

I am generating an HTTPS header through XSLT 1.0. The content of the XML
should just be copied as body into the HTTPS header.

I would like to know how to calculate the length of the body (which is
the XML part between the <OrderRequest>?  The result would go then in
the Content-length: xxxxx

Any ideas?

Many Thanks,
Houman


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="ISO-8859-1"/>
<xsl:template match="/RawData">

POST /pls/xml_api.receive_request HTTP/1.1
Content-length: xxxxxx
Content-type: multipart/form-data; boundary=vxvxv
Host: www.bt.com
Authorization:basic ZGFleDE6YXByMjAwMw==
Connection: close

--vxvxv
Content-disposition: form-data; name="p_file_in";
filename="noColonsSpacesOrAmpersandsInHere.typ"
Content-type: text/xml

<xsl:element name="OrderRequest">
	<xsl:copy-of select="*"/>
</xsl:element>
<xsl:
--vxvxv--

</xsl:template>
</xsl:stylesheet>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.