Possible duplicate:HttpWebResponse: close the stream
With ASP.NET, can I make a request and get only response headers? I have to make a request to a large file, but I only need the response headers, I do not care about the contents of the file.
I would like to know if there is something similar to get_headers from php ( http://php.net/manual/en/function.get-headers.php ).
I'm not sure how to do this initially, but at least you can use your own HTTP handler ( ASHX ) to create the necessary headers and do not return anything in response.
Update:
WebRequest.Method = "HEAD", . W3.
WebRequest.Method = "HEAD"
Source: https://habr.com/ru/post/1772318/More articles:utf-8 encoding a std :: string? - c ++rails button_to does not set the class correctly - ruby-on-railsC присвоение int - c++Linq to SQL intellisense не знает таблиц в объекте datacontext - sqlMass update of Couch DB using handlers - jsonHttpWebResponse: closing a stream - c #API-адреса Datastore API и запросы хранилища данных - google-app-engineЧто это называется и что я должен прочитать, чтобы заставить его работать? - redirectKohana 3 ORM as_array returns an ORM array - phpwriting nested namespace routes on staff3 - ruby-on-rails-3All Articles