Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple endpoints results in only one being used #4

Open
devlead opened this issue Mar 7, 2019 · 0 comments
Open

Multiple endpoints results in only one being used #4

devlead opened this issue Mar 7, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@devlead
Copy link

devlead commented Mar 7, 2019

Example, send two GETs:

curl http://url1.example.com http://url2.example.com 

Result

using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("GET"), "http://url1.example.com/"))
    {
        var response = await httpClient.SendAsync(request);
    }
}

Expect

2 requests. Probably a foreach around request statement.

Example, send two POSTs:

curl --data name=curl http://url1.example.com http://url2.example.com

Result

using (var httpClient = new HttpClient())
{
    using (var request = new HttpRequestMessage(new HttpMethod("POST"), "http://url1.example.com/"))
    {
        request.Content = new StringContent("name=curl", Encoding.UTF8, "application/x-www-form-urlencoded"); 

        var response = await httpClient.SendAsync(request);
    }
}

Exepected

2 requests

@olsh olsh self-assigned this Mar 7, 2019
@olsh olsh added the enhancement New feature or request label Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants