Search Result

Collapse
2 results in 0.0013 seconds.
Keywords
Members
Tags
uri
  •  

  • Stephen44905
    started a topic How to extract from a URL
    in Perl

    How to extract from a URL

    I've seen this question posted previously on bytes.com, but the question was never fully answered.

    Hypothetically, use this as a URL: http://subdomain1.subdomain2.domain.subdomain3.com What I'm looking for is a way to extract just the domain name leaving the subdomains and any other data excluded.

    At any given point, I won't know how many subdomains are included in the URL. So using a regex probably isn't the best idea as...
    See more | Go to post
    Last edited by Niheel; Sep 20 '10, 08:31 PM. Reason: elaborate, no signature links in posts

  • RamonPV
    started a topic System.Net.HttpWebRequest.Create(url) Problem

    System.Net.HttpWebRequest.Create(url) Problem

    Hello:

    I am trying to send an email which body will be a local aspx page, but when I try to get the page html using System.Net.Http WebRequest.Crea te(url) I am getting this error:

    Invalid URI: The format of the URI could not be determined

    I read that I need to provide the full URI but I do not know how to do that so that it works when debuging(here I get a path like this http://localhost:43898/MyAppNam...
    See more | Go to post
Working...