Solved

Content-Length Question???

Posted on 2008-06-17
4
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

739 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