Comments (3)
@HeSe Excel-REST isn't set up to automatically add the content-length parameter, but I'll add the functionality soon. In the meantime, use AddHeader
to add the Content-Length to the request. Example:
Dim Body As String
Body = "..."
Request.AddBodyString Body
Request.AddHeader "Content-Length", Len(Body)
from vba-web.
Hi Tim,
thanks for the reply. I had tried this, but it didn't work either.
I realized that I had fogotten to set the httpGET to the intended httpPOST method. Now it works,... but I stil lwonder now, if it should still possible to put a body into a httpGET call... it is not the way it should be in REST, but it still should be possible...
Sebastian
from vba-web.
Excel-REST will add the Body to all requests (including GET) if it is set explicitly using Request.AddBody
or Request.AddBodyString
.
The only case where the Body is not added is for Request.AddParameter
for GET requests since those are added as query string parameters. (This behavior was based on my experience with RestSharp)
from vba-web.
Related Issues (20)
- Can't install this tool HOT 2
- Excel 2016 For Mac 64-Bit Update - 'Internal Errors'
- Run time error 10001: error parsing json expecting "" or ''' HOT 13
- Installation no longer works since the office update HOT 2
- Not sure how to proceed with HttpBasicAuthenticator HOT 1
- Get Json from Google-Drive work on Windows but not on Mac HOT 1
- Update GitHub language breakdown HOT 1
- AWS Authentication
- Uploading a PDF to SharePoint REST API using an ADODB stream HOT 1
- Authenticator for Zoho Creator API
- Calling POST API Content-Type-application/json and getting error "Cannot deserialize the current JSON object" HOT 2
- 保存 HOT 1
- POST API to Verint, the connection is not getting authorised HOT 1
- Excel VBA
- Error with OAuth1.0 Authentication HOT 1
- あ
- Saving Image Response To A PNG File In Mac
- Better version that reads the object properties and makes into a table with headers: HOT 1
- AddQuerystringParam with cyrillic value characters HOT 7
- (Google Authenticator) Access blocked: request is invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vba-web.