HttpClient sending get request to angularjs url with #fragment

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



HttpClient sending get request to angularjs url with #fragment



I would like to know what is the proper way to send a get request to a URL with # in it, for example http://xxx/#/home in old angularjs that still has # in their route?



I am using the .net HttpClient class, and I tried



HttpResponseMessage response = await client.GetAsync("http://xxx/#/home");



and i am getting badrequest in response until i remove the # part.



Any ideas?
Thanks.





This seems to be what you want. In http://xxx/#/home, a web browser will load http://xxx/ (i.e. index.html, or similar), and then try to find the anchor home within the page. Web apps use the anchor (aka fragment) to target page states, but to do that outside the browser, you need to execute the javascript.
– John
6 mins ago



http://xxx/#/home


http://xxx/


home





Possible duplicate of Scraping webpage generated by javascript with C#
– John
3 mins ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

IAxO0LDOIJ5C4bR 0F2UtpLo,I3DK 9lEVIZFnsJt l9vGElqsSWs
i4bjPp xhOPKdH,U2L6cUtZ,k sJBde5 4KP NZ7Cuw3v7f8dmx,WTQoNWV K14ttk2EamehsLzpmfyozOP

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3