NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on September 11, 2017, 01:12:44 PM
-
Try it with netdemo.exe
https://viacep.com.br/ws/12511320/json/
check and uncheck textonly
thanks
-
Hi Walter,
TextOnly is used on HTML pages to remove the HTML and extract just the text from the page.
Your server is returning JSON, not HTML, so you shouldn't be calling TextOnly anyway.
(and you shouldn't - because it will alter the returned JSON if it contains extra spaces.)
That said, I've reviewed the method for 10.07 and I think perhaps it is a little agressive. It's currently set to remove punctuation - which I think is probably excessive for what's it's used for. So I've tweaked that so the punctuation remains.
Cheers
Bruce
-
Hi Bruce,
Just for my knowledge.
I just want to remove the header and the test i've made with demo nt9.xx its works for me. The problem start from NT 10. so, is there a method that return just the content with no header?
Cheers
Walter
-
if you call
net.removeheader()
then the header part is removed from
net.thispage
Is that what you are trying to do?
cheers
Bruce
-
Hi Bruce,
No, normally i getting Header length and removing it from thispage.
I'll try .removeheader
thanks
Walter