Solved

Content-Length Question???

Posted on 2008-06-17
4
227 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
ID: 21828679
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
ID: 21828723
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.
ID: 21828753
You're welcome.

I expect that would work.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

828 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