This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Description
I'm trying at append some information into a soap header using titanium web proxy. I can get the request body using e.GetRequestBodyAsString() but when I modify the string and send it back using e.SetRequestBodyString() the string is truncated to the length of the original request body.
For example, if the original request body was:
<soap:Envelope>
<soap:Header />
<soap:Body>
<tag>
info
</tag>
</soap:Body>
</soap:Envelope>
And I changed it to be:
<soap:Envelope>
<soap:Header>
</soap:Header>
<soap:Body>
<tag>
info
</tag>
</soap:Body>
</soap:Envelope>
The e.SetRequestBodyString would actually send:
<soap:Envelope>
<soap:Header>
</soap:Header>
<soap:Body>
<tag>
info
</tag>
</soap:Body>
</so
In other words, if the original request was 500 bytes, and the modified message I was trying to send was 512 bytes, the actual message sent with the e.SetRequestBodyString would just be the first 500 bytes of the 512 byte message that I was trying to send.
Using Titanium Web Proxy 2.1.110 with .Net Framework 4.5