Skip to content

I download the simple,and run Example project,First client request and response "Bad mac" #25

@rustbomber

Description

@rustbomber

var clientHandler = new HawkClientMessageHandler(new HttpClientHandler(), credential, "some-app-data");
var client = new HttpClient(clientHandler);

            var request = new HttpRequestMessage(HttpMethod.Get, "http://localhost:8091/api/HelloWorld");
            request.Headers.Host = "localhost";

            var response = client.SendAsync(request).Result;
            string message = response.Content.ReadAsStringAsync().Result;
            Console.WriteLine("Response {0} - Http Status Code {1}", message, response.StatusCode);

Additional:
I change url to http://localhost:28290/api/HelloWorld and run Example.Web project,is work well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions