Forum Discussion
Post data to server along with header and payload in body< Please read the question below>
I have the below code in request data section. and I want to post the request along with header and payload to server. Please suggest the code here. I know to add header. but how to post the data ? when HTTP_REQUEST_DATA { set payLoadData [HTTP::payload $ssoPayLoadLength] session add ssl payLoadData $payLoadData $::timeout log local0.info "30.07-1 - payLoadData:$payLoadData IP: [IP::client_addr]"
set client_cert [SSL::cert 0] if { $client_cert eq ""} { SSL::cert mode request SL::renegotiate } else { Do HTTP post along with certificate and payloads return }
3 Replies
- nitass
Employee
I want to post the request along with header and payload to server. Please suggest the code here. I know to add header. but how to post the data ?
if http payload is not changed, you do not need to do anything, do you?
- Pradeep_Kandala
Nimbostratus
I need to add certificate in header. and my iRule is complex simply adding wont work.
the posted irule code does not seem complete. and as nitass mentions why would just adding the header not be enough.
something like: HTTP::header insert X-Client-Cert [b64encode $client_cert]
why does this fail for you?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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