Is this expected? For example:
https://google.com/hello?w=orld#hi
Uri.PathAndQuery
would result:
/hello?w=orld
Fully excluding the # bit even though I require it. What should I do here? Should I manually do a PathAndQuery like operation perhaps:
string fullUri = Uri.ToString();
Uri.Host + "/" + fullUri .Substring(fullUri.indexOf(Uri.Host)+Uri.Host.Length)
Essentially it compiles google.com
, /
, hello?w=orld#hi
which would be an expected result
Im retrieving this specifically for a stream write request related operation:
{0} {1} HTTP/1.1\r\n {0} = Method {1} = pathandquery