Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js
Date: 1/31/2018 @ 2 p.m. ET
There are cases in which we might want to warn the user before an attempt is made to download a large file, or we might simply be interested to know its size before downloading.
In C#, we use the HttpWebRequest class to download objects from an URL. We can set the request method to be of “Head” type and examine the response header “Content-Length” to determine the size of the object.
string url = "http://mydomain.com/FileStore/bigfile.zip";
var urlRequest = (HttpWebRequest)WebRequest.Create(url);
//Set the request.method to ???HEAD???
urlRequest.Method = "HEAD";
var urlResponse = urlRequest.GetResponse();
string contentLength = urlResponse.Headers.Get("Content-Length");
Visit the DevX Tip Bank
more link ADS
Smart Retail, Smart Agriculture, Smart supply Chain, Smart Health, Smart energy, Smart City
Blockchain, bitcoin, ethereum, blockchain technology, cryptocurrencies
Information Security, latest Hacking News, Cyber Security, Network Sec
Information Security, latest Hacking News, Cyber Security, Network Security
Blog! Development Software and Application Mobile
Development apps, Android, Ios anh Tranning IT, data center, hacking
Car News, Reviews, Pricing for New & Used Cars, car reviews and news, concept cars
Travel Blog is a unique free online travel diary for travellers across the world.