Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get request url in asp.net core

using Microsoft.AspNetCore.Http.Extensions; 


var url = httpContext.Request.GetEncodedUrl();
or

var url = httpContext.Request.GetDisplayUrl();
depending on the purposes.
 
PREVIOUS NEXT
Tagged: #request #url #core
ADD COMMENT
Topic
Name
6+8 =