cut http get response

Posted by Rollbase User on 16-Nov-2012 01:19

Hi, I have a http get request that cannot save all the response when it is very long, i save it in the textarea but when I query it not all response was saved, the xml was cut. see image below where RB response was cut although debug works ok aside from unread Norwegian characters that converts to characters. Here is the full copy of XML response http://ocweb.tk/search.xml it should save until http get trigger  Textarea Value  Debug result

All Replies

Posted by Admin on 16-Nov-2012 12:37

Your search results seems to use correct UTF-8 characters. Debug window seems to work with UTF-8 characters correctly as well. Please provide full output from Debug window using some short example.

Posted by Admin on 16-Nov-2012 21:21

Never mind the utf-8 characters on debug since it can get the exact characters already when it was stored in textarea, the problem is the XML response was able to store all the characters, it was cut in the middle,

here is the full copy of XML response from a rollbase debug

http://ocweb.tk/debug_response.htm



here is a copy of what i get when it was stored in textarea from http response

http://ocweb.tk/xml_textarea.txt

Posted by Admin on 17-Nov-2012 13:07

Value of Text Area is limited to 80000 characters. You may have to find a different way.

Posted by Admin on 17-Nov-2012 23:02

okay, is there a way to convert the characters in the dubug window into utf-8 characters? see image below for non utf-8 characters in debug window.



Posted by Admin on 18-Nov-2012 10:50

How did you produce printout on Debug window? Did you use rbv_api.print() API?



Regarding Text Area limitations - please consider using Fie Upload fields instead.

Posted by Admin on 18-Nov-2012 13:00

I just use the magnifying glass in the http get trigger for debug.. see image below.









In the New Account Page, I stored the debug window in the iframe as alternative for textarea, but i have trouble getting the utf-8 characters. see image below.



Posted by Admin on 19-Nov-2012 01:31

Hi Pavel, it's okay now, we just created 10 textareas and divide the response.

Thank you.

Posted by Admin on 22-Nov-2012 23:00

I tried Norwegian web sites as example for trigger's URL - seems to work fine.

This thread is closed