minor update for SOAP payloads

This commit is contained in:
Miroslav Stampar 2011-04-18 14:29:52 +00:00
parent c6a0209649
commit 6463cad8c5

View File

@ -456,6 +456,11 @@ class Connect:
# functions therefore we need to use % as a safe char
payload = urlencode(payload, "%", False, True)
value = agent.replacePayload(value, payload)
elif place == PLACE.SOAP:
# payloads in SOAP should have chars > and < replaced
# with their HTML encoded counterparts
payload = payload.replace('>', '&gt;').replace('<', '&lt;')
value = agent.replacePayload(value, payload)
value = agent.removePayloadDelimiters(value)