c# - get extension of file(edit) -


i want extension file of url .

for example extension http://www.iranfairco.com/download-file/02912bb889cb24. if extension file gif.

edit:

for example url "http://www.online-convert.com/result/d8b423c3cbc05000cc52ce7015873e72"

please me how can extension of url?

why path.getextension not work you?

edit
ah, url doesn't specify extension after. means anything behind it.

just inspecting string value of url, can't see behind it. (second) example point (ultimately) .gif file, have been .jpg, .doc (or .exe).

you need webrequest see back. try head headers (and inspect content type), don't think work here. try fiddler see back, can refine question.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -