Forum Discussion
MHO
Nimbostratus
Sep 18, 2014Base64 decoding
Hello,
is it possible to decode this type of a soap post request on LTM. Section base64Content needs to be decoded. Any idea for an iRule?
POST /upload/documents HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Content-Length: 623
Host: avtestsoap
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:doc="http://xxxxxx/documents"
soapenv:Header/
soapenv:Body
doc:storeDocumentRequest
doc:nameEicar/doc:name
doc:base64ContentWDVPIVAlQEFQWzRcUFpYNTQoUF4pN0NDKTd9JEVJQ0FSLVNUQU5EQVJELUFOVElWSVJVUy1URVNULUZJTEUhJEgrSCo=/doc:base64Content
!--Optional:--
doc:mimeTypetext/xml/doc:mimeType
!--Optional:--
doc:descriptionVirus Sig/doc:description
/doc:storeDocumentRequest
/soapenv:Body
/soapenv:Envelope
- jgranieri
Nimbostratus
Use an appropriate HTTP event handler
something like this:
when HTTP_REQUEST { set header HTTP::header "XYZ" log local0. "This is the header before b64 decoding" set headerb64decode [b64decode $header] log local0. "This is the header b64 encoded
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects