sys.WebGet not working correctly?

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

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

rnio
Posts: 77
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?

User avatar
Aaron
Site Admin
Posts: 4569
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)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests