Solved

Content-Length Question???

Posted on 2008-06-17
4
226 Views
Last Modified: 2008-06-19
I will be using a VBA function in Access to post an XML request to a URL.  According to the documentation the following headers were included.  The question is what is Content-Length and do I need to include it with the post. The XML document is just a small variable that contains the accountid, user, pswd, vehicle and a short messagetext.  

POST /AsciiWebService/AsciiService.asmx HTTP/1.1
Host: TeletracXMLGateway
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://xmlgateway.xxxxxx.net/SendOutboundMessage"


Thanks,

ET
0
Comment
Question by:Eric Sherman
  • 2
4 Comments
 
LVL 42

Accepted Solution

by:
David S. earned 250 total points
Comment Utility
It tells how long the message body is for that HTTP Response. You should include it.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.13
0
 
LVL 19

Author Comment

by:Eric Sherman
Comment Utility
Thanks for the reply kravimir.  

How do you calculate the Content-Length???  Currently, I'm using Len(strMsgData).  Will that work???

ET
0
 
LVL 42

Expert Comment

by:David S.
Comment Utility
You're welcome.

I expect that would work.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now