Mohamed Riyas

Mohamed Riyas

  • NA
  • 4
  • 2.7k

To get domain name of other server in my server.

Jan 29 2018 6:26 AM
i am doing image processing in my server. if any server passes there relative path of image to process that image into my server, i am now requiring that requesting server domain name like "www.google.com". please help me, how i have to get domain name of that requesting server.
 
string DomainName =absoluteUri.Authority;
 
This above code requires absolute path of image, bt i will gets only relative path of the image as "query" from other servers.

Answers (1)