Hi,

I have a requirement to inspect a given wikipage's url to determine if its size exceeds 500kb, and to get the page, truncate it to 500kb and pass it to some api. 

I couldnt find a way to determine the size of a wikipage through the api. 

I also tried to call HEAD on the wikipage. I do get results sometimes, but sometimes I get an http 403 forbidden. The same thing happens with http GET on the page. The pages I tried most often for testing were http://en.wikipedia.org/wiki/Barack_Obama and http://en.wikipedia.org/wiki/United_States.

Can you suggest an effective way to achieve the requirement above?

Thanks
Anand