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

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

Open
rustbomber opened this issue Jun 27, 2014 · 1 comment

Comments

@rustbomber
Copy link

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.

@rustbomber
Copy link
Author

I catch the info:
HawkNet Information: 0 : Normalized String: hawk.1.header
1403852658
1Vd0CA
GET
/api/HelloWorld
localhost
8091


HawkNet Information: 0 : Normalized String: hawk.1.header
1403852658
1Vd0CA
GET
/api/HelloWorld
localhost
80

I found the port is difference,why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant