Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Content-Length Question???

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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

722 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