0
votes
2answers
186 views

Qt or general c++ How to get or detect the host of the <a href=“file.html” > in c++

i have simple app the gets all the links from web page , im using libexml2 to parse the html and extract the html links that are inside the and Qt QNetworkAccessManager for the http requests . now ...
1
vote
4answers
136 views

Is there a jQuery function to check wether a URL posts to another host?

Is there a nice and fancy way to check wether the URL of a link which has been clicked points to another host? $(document).ready(function() { $('a[target="_blank"]').click(function() { if ...
1
vote
4answers
235 views

PHP - If URL has this in it, do not show div

I am trying to find the best way to have a DIV be hidden if the url is something. For example I have 2 sites using the same template but only 1 of those sites I want to display something. So site A ...
0
votes
1answer
163 views

How to get proxy from text file c#/.net?

I have saved some url's in a text(link.txt) file & some proxy(proxy.txt) in another text file. now i want to use different proxy for each url. like: www.google.com 202.56.232.117:8080 ...
-2
votes
3answers
588 views

How do I get the host name from a URL in Perl using regex?

so what I want to do is remove everything after and including the first "/" to appear after a "." so: http://linux.pacific.net.au/primary.xml.gz would become: http://linux.pacific.net.au How do I do ...
0
votes
3answers
4k views

Rails: how to get the current host, or build a URL with it?

I need to use the host to build a URL with a different port. For example, if the host is example.com, I need to generate a URL like http://example.com:8080/ I need it to be portable, so when I'm in ...
4
votes
1answer
267 views

RFC 1738: URL: Must the host contain a dot?

According to RFC 1738: Uniform Resource Locators (URL): 3.1. Common Internet Scheme Syntax, must the host component contain a dot, e.g., "example.com"? I.e., may it be composed of only one domain ...
6
votes
2answers
3k views

Does Request.Url.Host include the subdomain?

e.g. for mail.google.com would it return google.com or mail.google.com? I can't actually test it myself
0
votes
0answers
103 views

default URL redirection

I am having an anoying problem here. I am trying to test my web site locally using an unused url "lwww.domain.com". I set everything including my host file, and then when I try to access in IE. ...
3
votes
3answers
4k views

How to use Django to get the name for the host server?

How to use Django to get the name for the host server? I need the name of the hosting server instead of the client name?
0
votes
3answers
834 views

Wrong host returned using HttpContext.Current.Request.Url.Host

We have multiple domains for one of our websites. e.g. mydomain-uk.com and mydomain.co.uk I have a handler which creates an XML sitemap and it uses HttpContext.Current.Request.Url.Host to retrieve ...
0
votes
5answers
2k views

Get the current url but without the http:// part bookmarklet!

Guys I have a question, hoping you can help me out with this one. I have a bookmarklet; ...
0
votes
1answer
177 views

Python: Grab the A record of any URI?

I basically want to implement something where you can type in any URI ( I probably will only deal with http ) and I want to return the A record of the domain in the URI, I want the server's IP ...
4
votes
4answers
2k views

What are the valid characters that can show up in a URL host?

I'm writing some code that processes URLs, and I want to make sure i'm not leaving some strange case out... Are there any valid characters for a host other than: A-Z, 0-9, "-" and "."? (This ...