Forum Discussion
iRule Parsing error
Hello, Trying to create an iRule but getting a parse error. What am I missing or is there something with the iRule? Thanks for the help.
when HTTP_RESPONSE { if { !([ HTTP::header exists "Public-Key-Pins-Report-Only “ ])} { HTTP::header insert "Public-Key-Pins-Report-Only" “MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx45y7jJLG4r045dN99e/ uvFjNSMSMTmybVj3P4o3y5WguJQpl5rxGoxan7cj/Ie8aLk7H85Gm1WNVcItlfEH qQLz/1xAjyC74ug/vG6IMt5G+mRCFVn0ei1D/Bdhq2r+BO5DjlwsdQrglddZ9rVi 68WcPToD6jR9vkzveCzst6UX4cN55XIgazLQ1rodA4Z5Tu1rOt6aF/MdVN3A+QT0 oMOcY2vP89rLrwJo9fMS6hz3th2OwpqZvHNdRMg/1/uUP9d7xpbRjeV+X/6v7X/R”} }
- Stanislas_Piro2
Cumulonimbus
you don't use ASCII double quote but “
- Andy_McGrath
Cumulonimbus
when HTTP_RESPONSE { if {!([HTTP::header exists "Public-Key-Pins-Report-Only"])} { HTTP::header insert "Public-Key-Pins-Report-Only" "{pin-sha256=\"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx45y7jJLG4r045dN99e/uvFjNSMSMTmybVj3P4o3y5WguJQpl5rxGoxan7cj/Ie8aLk7H85Gm1WNVcItlfEHqQLz/1xAjyC74ug/vG6IMt5G+mRCFVn0ei1D/Bdhq2r+BO5DjlwsdQrglddZ9rVi68WcPToD6jR9vkzveCzst6UX4cN55XIgazLQ1rodA4Z5Tu1rOt6aF/MdVN3A+QT0oMOcY2vP89rLrwJo9fMS6hz3th2OwpqZvHNdRMg/1/uUP9d7xpbRjeV+X/6v7X/R6MjMC7OvY5MdcdD0SbYwb7Eb2+nTiDJBzuP+emwfEEV+OHKyuseeXZZxgcSmO3DfnwIDAQAB\"}" } }
Updated to include '\"' for internal double quotes
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