cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Get POST parameter when using BoundaryWebKit

davide_diana2
Inactive

Hello,

I am trying to retrieve the values of POST parameters with request using BoundaryWebKit. There requests use the header

Content-Type:
multipart/form-data; boundary=----WebKitFormBoundaryy4UHhOP6cBZ28APA

The Payload of these kind of POSTs looks like this:

------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="DEFAULT_RESOURCE"

/content/sorgeniawscmobile/homepagepostlogin.html
------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="EXPIREDPWD_RESOURCE"

/content/sorgenia-app-ajs/changepassword.touch.html
------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="EXPIREDPWD_NOMAIL_RESOURCE"

/content/sorgenia-app-ajs/changepasswordnoemail.html
------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="CENSIMENTOMAIL_RESOURCE"

/content/sorgenia-app-ajs/censimentoemail.html
------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="WSC_FAIL_REDIRECT"

/content/sorgenia-app-ajs/login.html
------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="DIGITAL_DEFAULT_RESOURCE"

/content/sorgenia-app-ajs.html
------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="j_username"

------WebKitFormBoundaryy4UHhOP6cBZ28APA
Content-Disposition: form-data; name="j_password"

As you can see, it is quite different compared to the standard POST http body.

Are we able to extract the values we need? I tried to set up the Web Request sensor suing wildchar "*" but it seems it is not showing what we need.

Thank you,

2 REPLIES 2

andreas_grabner
Dynatrace Guru
Dynatrace Guru

Hi

We cant extract these values from the HTTP POST Body. The best approach is to try to capture the values you need from a method argument on your server-side code implementation. You can define a custom sensor and then capture method arguments. You can also capture a value in case it gets passed to a method as a complex object.

If you want to learn more about custom sensors check out my youtube tutorial on advanced sensors: https://www.youtube.com/watch?v=lRtG7Js2cY4&list=P...

Andi

Hi Andreas,

customer doesn't have agents on the backend so we cannot get these information using other sensors. I suppose I am going to open an RFE in order to ask for this feature.

Thank you,