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

[wasm] HttpClientHandler does not return the response status text. #10842

Closed
kjpou1 opened this issue Sep 27, 2018 · 0 comments · Fixed by #10847

Comments

@kjpou1
Copy link
Member

@kjpou1 kjpou1 commented Sep 27, 2018

The default WebAssembly WasmHttpMessageHandler does not allow the retrieval of the response text on all response statuses that are not defined as OK.

Example:
For Status Code = 403 which is a Forbidden response from the server, the response message is empty when accessing the ResponseMessage's Content.

kjpou1 added a commit to kjpou1/mono that referenced this issue Sep 27, 2018
…text if available when there is an http error.

resolves: mono#10842
akoeplinger added a commit that referenced this issue Oct 2, 2018
* Fix problem with HttpClientHandler not returning the response status text if available when there is an http error.

resolves: #10842

* Extend C# sample to include:

- Calling JavaScript functions from C#
- Calling C# functions from JavaScript.
- Referencing JavaScript objects
- Getting and Setting JavaScrip object properties.
- Invoking JavaScript object functions.
- Setting up the default HttpClientHandler
- Instantiating a default WasmHttpMessageHandler.
- Setting up HttpClient calls
- Parsing and testing the correct results returned from the HtppClient.
- Obtaining a byte array and string array from response.
- Obtaining a reference to a global script function defined in the .html file and calling it.
- Working with DOM objects using the SDK's WebAssembly.Bindings.dll

resolves: #7548

* Update sample usage docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.