login about faq

Hi

I'm struggling a bit with chunked content

With NON chunked data I get the ComContentLength of the ResposneObj. If it's >0 then make sure I have enough string space allocated and then call ComBodyStr of the ResposneObj

However with chunked content there is no Content-Length so how can I know how big it is before calling ComBodyStr ?

Thanks

asked Jun 12 '13 at 06:59

CDS's gravatar image

CDS
169912


BodyStr is a string property of the HttpResponse object. (I'm assuming this is Visual DataFlex?) I don't have any experience with it, so I don't have any good answer. It seems to me that your question would also apply to every single string property across all Chilkat objects. In fact, it would apply to all string properties on any ActiveX object, whether it be Chilkat or not. There must be something you can do within your own programming language.

link

answered Jun 12 '13 at 15:00

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Thanks for the prompt response

Yes this is Visual Dataflex

Not quite. Any string property that is returned that is <64k will work fine

If it is >64k then I need to set an argument_size to the appropriate size or greater so the string will contain the full data and not be truncated at 64k

I can see I can get the Transfer-Encoding from the header to see if it is chunked but by the sounds of it there is no way to know the length of BodyStr before I get it if it is a chunked transfer ?

Thanks in advance

link

answered Jun 12 '13 at 15:36

CDS's gravatar image

CDS
169912

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×11
×1

Asked: Jun 12 '13 at 06:59

Seen: 998 times

Last updated: Jun 12 '13 at 15:36

powered by OSQA