This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ts_get_sec() | |
{ | |
read -r h m s <<< $(echo $1 | tr ':' ' ' ) | |
echo $(((h*60*60)+(m*60)+s)) | |
} | |
## MAIN GOES HERE ## | |
LOG_FILE=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from com.apigee.util import Crypto | |
authHeader = flow.getVariable("request.formparam.user") + ":" + flow.getVariable("request.formparam.password"); | |
encodedValue = Crypto.base64encode(authHeader); | |
flow.setVariable("request.header.Authorization", "Basic " + encodedValue); |
NewerOlder