Forum Discussion

Pradeep_Kandala's avatar
Pradeep_Kandala
Icon for Nimbostratus rankNimbostratus
Jan 06, 2015

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

  • 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?

     

  • 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?