Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Content-Length Question???

Posted on 2008-06-17
4
Medium Priority
?
232 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 43

Accepted Solution

by:
David S. earned 1000 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 43

Expert Comment

by:David S.
ID: 21828753
You're welcome.

I expect that would work.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

916 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