From 6463cad8c5514d451ae8dea6b705e8ce2d65a387 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 18 Apr 2011 14:29:52 +0000 Subject: [PATCH] minor update for SOAP payloads --- lib/request/connect.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/request/connect.py b/lib/request/connect.py index 9171ea813..0236386b3 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -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('>', '>').replace('<', '<') + value = agent.replacePayload(value, payload) value = agent.removePayloadDelimiters(value)