String length limit at 4000 bytes?

uhzeg

Member
Licensed User
Longtime User
Hi all

I have a HttpResponse with about 150'000 bytes. But if I use

Log(Response.ContentLength)
result = Response.GetString("UTF8")
Log(Response)
Log(result & " " & result.Length)​

the string "result" does only hold 4000 bytes and the rest is truncated.

Any idea, how I can access the whole HttpResponse in a string?

thanks a lot in advance
 

uhzeg

Member
Licensed User
Longtime User
You are right!

Thanks a lot Erel !
It was indeed only the log that was truncated.
Thanks for your help.
 
Upvote 0

NFOBoy

Active Member
Licensed User
Longtime User
Hitting a wall..

Erel,

I'll use this tread for a follow up.
When I send a request for a Google Search Page, the character count from the GetString is showing as 65585 (+ or -, it fluctuates a couple of characters), yet when I use a ViewSource for the same search I find over 174000.

And sure enough, when I try to find my piece I'm looking for, it's in that last part (of course).

Is there no limit? If so, what would I need to do to get past what I'm seeing now?

(I used your httputils2 sample code and just stuck in "https://www.google.com/search?q=1+usd+in+yen")

Ross
 
Upvote 0
Top