Posts by guilhermeor • 26 points
2 posts
-
1
votes1
answer79
viewsA: How to consume Github API on VS2019 avoiding 403 error on all requests?
You must specify a User agent in the header. Just adding the following code after booting your Httpclient should work client.DefaultRequestHeaders.Add("User-Agent", "request");…
-
0
votes1
answer80
viewsA: Error while trying to compress folders from a drive - Unauthorizedaccessexception
Tried to use the static Zipfile class present in System.IO.Compression ? You could use the Createfromdirectory method like this: ZipFile.CreateFromDirectory(@"E:\",…