Hi Sakshi,
“application/x-www-form-urlencoded” and “text/plain” are different content types and as I understand you can set only one Content-Type. In the pub.client:http, set the Content-Type=application/x-www-form-urlencoded in the “headers” field and set the data you want to send in the “data/args” fields.
Here is the sample request when I use TCPMON to intercept the request sent using pub.client:http
POST /invoke/pub.flow:debugLog HTTP/1.1
User-Agent: Mozilla/4.0 [en] (WinNT; I)
Host: 127.0.0.1:1234
Authorization: Basic QWRtaW5pc3RyYXRvcjptYW5hZ2U=
Content-Type: application/x-www-form-urlencoded
Cookie: ssnid=d929241228e34c7bb9af8b1e60bf6c1b
Content-Length: 22
message=Hi&level=debug
#webMethods