-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
content-length #13
Comments
@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 Dim Body As String
Body = "..."
Request.AddBodyString Body
Request.AddHeader "Content-Length", Len(Body) |
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 |
Excel-REST will add the Body to all requests (including GET) if it is set explicitly using The only case where the Body is not added is for |
Hi!
I try to put data with the help of AddBodyString to my request and the server isn't able to process it since the content-length is missing...
Am I supposed to use "AddParameter" with: "Content-Length" after having done "AddBodyString " or am I missing something different?
Thanks for the help!
Sebastian
The text was updated successfully, but these errors were encountered: