[SOLVED] sys.WebGet not working correctly?

Found something wrong ?
Post Reply
rnio
Posts: 89
Joined: Tue Jul 03, 2012 4:56 pm

[SOLVED] sys.WebGet not working correctly?

Post by rnio » Mon Jan 15, 2018 4:53 pm

Hi Aaron,

trying to use the NEW WHITEPAGES PRO api (3.0) ... and get NO more than 704 bytes from the "sys.WebGet" ... any ideas how to get around this? I know you set the limit to 8K ... but I am NOT getting that.

Here is what I do:

Code: Select all

url = "https://proapi.whitepages.com/3.0/phone?phone=#{@cid}&api_key=#{WP_key}"
		   @webgetresult = sys.WebGet(url)
		   jsonwebgetresult = JSON.parse (@webgetresult) 
When the JASON.parse is execute I get errors ... then I look at the content of @webgetresult and see only ~706 bytes.

For testing purposes I populate @webgetresult with a sample JASON of 1.6KB ... works without a problem.

Robert
Last edited by rnio on Fri Feb 23, 2018 2:41 am, edited 1 time in total.

rnio
Posts: 89
Joined: Tue Jul 03, 2012 4:56 pm

Re: sys.WebGet not working correctly?

Post by rnio » Wed Jan 24, 2018 2:44 am

Still NOT able to get this resolved ... webget is returning only a fraction of the 8K limit?! Headers etc. can not / should not make up more than 7K ... I only get 700B of actual content returned.

Any pointers where else to look?

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: sys.WebGet not working correctly?

Post by Aaron » Tue Feb 06, 2018 5:55 am

I've added a new test method called sys.WebGet2. It uses the newer C# HttpClient class.

You can try it out using: sys.WebGet2(string url, int timeoutSeconds)

rnio
Posts: 89
Joined: Tue Jul 03, 2012 4:56 pm

Re: sys.WebGet not working correctly?

Post by rnio » Fri Feb 23, 2018 2:41 am

sys.WebGet2

SOLVED the problem of not getting the full dataset!

Thanks

Post Reply