bunq-cli | open source CLI tool to quickly use | REST library
kandi X-RAY | bunq-cli Summary
kandi X-RAY | bunq-cli Summary
An unofficial and open source CLI tool to quickly use the bunq API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bunq-cli
bunq-cli Key Features
bunq-cli Examples and Code Snippets
Community Discussions
Trending Discussions on bunq-cli
QUESTION
I have the below working PHP code that calls an API. The API will use some of the headers and encrypt them to compare with the Client-Signature
which is also one item in the header.
I translated to Google App Script. But unfortunately I am getting a signature error for the App Script code.
My question is, would Google App Script render the headers the same way at the PHP code shown? Because, all others issues ruled out, I am doubting that the way headers are rendered in the HTTP request may be causing the signature issue.
If you see an other issue, please let me know. I am totally stuck here.
...ANSWER
Answered 2018-Sep-27 at 16:43Thanks All for your suggestions. Created a Web Service that prints the headers it receives and discovered this.
Google App Script puts its own User-Agent value irrespective of what you put at the User-Agent in fetch method. UrlFetchApp.getRequest doesn't show what User-Agent value goes to the web service. It only shows what you put in.
So in this case I put below value for User-Agent in header:
VBA-Web v4.1.5 (https://github.com/VBA-tools/VBA-Web)
getRequest
shows below value for User-Agent in the headers:
VBA-Web v4.1.5 (https://github.com/VBA-tools/VBA-Web)
When the request hits the web service below is what went in the header for User-Agent:
Mozilla/5.0 (compatible; Google-Apps-Script)
Since User-Agent was used in calculating the signature, I was getting a Signature error.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bunq-cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page