Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Can we use WebRequest? #5

Open
KOLANICH opened this issue Jul 14, 2013 · 2 comments
Open

Can we use WebRequest? #5

KOLANICH opened this issue Jul 14, 2013 · 2 comments
Assignees

Comments

@KOLANICH
Copy link

Can we use WebRequest?

WebRequest req=WebRequest.Create(uri);
req.Credentials = CredentialCache.DefaultCredentials;
var resp=req.GetResponse();
var str=resp.GetResponseStream();

And then use stream reader to slowly read ...

@kasthack
Copy link
Member

Зачем? Код не сильно уменьшится, а работать будет медленнее.
Единственное реальное применение - HTTPS, но я не помню сайтов, у которых был бы только он.

@KOLANICH
Copy link
Author

Посмотрел встроенную реализацию - мусора многовато, насчёт медленности не знаю.

@ghost ghost assigned kasthack Jul 19, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants