Tagged Questions
10
votes
3answers
6k views
Trying to run multiple HTTP requests in parallel, but being limited by Windows (registry)
I'm developing an application (winforms C# .NET 4.0) where I access a lookup functionality from a 3rd party through a simple HTTP request. I call an url with a parameter, and in return I get a small ...
42
votes
3answers
6k views
HttpClient request throws IOException
The following code throws a IOException with the message: "The specified registry key does not exist."
HttpClient client = new HttpClient();
Uri uri = new Uri("http://www.google.com");
...
6
votes
2answers
2k views
Reuse asynchronous socket: subsequent connect attempts fail
I'm trying to reuse a socket in an asynchronous HTTP client, but I'm not able to connect to the host the second time around. I basically treat my asynchronous HTTP client as a state machine with the ...
7
votes
2answers
7k views
Calling MVC4 WebAPI methods from C# Metro UI Client using PostAsync, HttpClient & Json
I've created a method using the new WebAPI features in MVC4 and have it running on Azure. The method requires that you post a simple LoginModel object that consists of a Username and Password ...
5
votes
2answers
4k views
handling a comma inside a cookie value using .net's (C#) System.Net.Cookie
I'm creating a client to visit a website and log in + do some tasks automatically, however they recently updated their cookies to (for whatever reason...) contain a comma inside their identification ...
2
votes
3answers
1k views
.NET - Consuming HTTP services on (Domino) server with form based authentication
I am writing a utility in C# (.NET) which will use HTTP to request data from a Domino web server.
However, this server uses form based authentication, not basic HTTP authentication.
I am trying to ...
0
votes
1answer
362 views
Asp.net Web Api Redirect request
I have an Asp.net Web API project which has several CRUD methods.
On top of these methods, i want to add an Authorization service that reads the Authorization header and prevent users of accessing ...
0
votes
0answers
199 views
Sending POST request to get OAuth Acess Token
Google API has documents on implementing OAuth 2.0. However I am quite confused at how your supposed to obtain the access token. The documentation says that I must send a POST request in the following ...
0
votes
0answers
421 views
HttpClient exception in Windows 8 app
I am using HttpClient to send and receive data from the server in my Windows 8 app.
Below is my code:
HttpClientHandler handler = new HttpClientHandler();
handler.UseDefaultCredentials = true;
...