url

Requesting HTTPS URL

I am trying to grab some data from Delicious, using URL class, URL url = URL(u); url.openStream(); open stream fails with 401, url i am using is, String("https://" + creds + "@api.del.icio.us/v1/posts/recent"); creds is a base64 encoded string e.g. user:pass encoded, i also tried non encoded form that fails also, can someone tell ...

How to get URL of file on a different drive from the ASP.NET application?

I have a server with a C: drive and a D: drive. My ASP.NET application is on D: drive as follows: D:\inetpub\vhosts\mywebsite.com I want my application to read and download files located on C:\sessionVideos\ My problem is how do I create an URL pointing to the "C:\sessionVideos\" folder? Thanks, James ...

Java : replacing text URL with clickable HTML link

Hello, I am trying to do some stuff with replacing String containing some URL to a browser compatible linked URL. My initial String looks like this : "hello, i'm some text with an url like http://www.the-url.com/ and I need to have an hypertext link !" What I want to get is a String looking like : "hello, i'm some text with an url ...

Track a short URL generated for a long URL

I'm writing a URL shortener similar to tinyurl and I'm wondering how to keep track of URL's that are already shortened using my service? For example, tinyurl generates the same tiny URL for the same long URL regardless of who creates it. How can this be achieved that is scalable? Bitly also does this though they generate a new URL per pe...

How to get the value after the hash in "somepage.php#name"?

Hi guys, I need experts to help me solve this problem. Let me explain: For a given url, I want to get the name-after-hash's age from the database. so for url like thepage.php#Madonna, you'll see "119!". How can I extract the value after the hash in a url? (i need a safe all-browser-compatible-NON-JAVASCRIPT way). I want to do that lik...

Trigger function based on result of custom function Referring URL

I need to use javascript(jquery if applicable) to trigger my modal call if the result of my function is true and the referring URL is not of the domain The desire is that the user visits the main splash page and as long as they have not been redirected there by the site itself (via timeout on session, invalid login credentials, etc) it ...

Multiple recipients using SMS URL on iPhone

Is there a way to use the SMS URL to open the SMS app with multiple recipients? I've tried similar approaches to the mailto: protocol but it's not playing nice. Thanks in advance. ...

how to attach url link to an image?

Hi I am creating an website. It contains videos of different places. Now my problem is i need integrate an image on that with url link. when user taps on that link it has to go to that link. Even user downloads the video also it has to go to that link (same link above linked to image). thanks in advance ...

SEO Destroyed By URL Forwarding - Can't figure out another way

We design and host websites for our clients/sales force. We have our own domain: http://www.firstheartland.com Our agents fill out a series of forms on our website that are loaded into a database. The database then renders the website as a database driven website. /repwebsites/repSite.cfm?link=&rep=rick.higgins /repwebsites/repSit...

Get the second level domain of an URL (java)

Hi All, I am wondering if there is a parser or library in java for extracting the second level domain (SLD) in an URL - or failing that an algo or regex for doing the same. For example: URI uri = new URI("http://www.mydomain.ltd.uk/blah/some/page.html"); String host = uri.getHost(); System.out.println(host); which prints: mydomain...

postback url rewriting sharepoint

I am trying to do url rewriting in sharepoint . I have done something and its working fine but the problem is when I click on by default controls in sharepoint like edit page, approve or any links they are pointing to the old one and not to the new one and because of that I m getting 404 not found. If anyone is having idea how to solve ...

.htaccess RewriteRule so user views site.com/folder but is served site.com/f1/f2/f3/folder/index.php

I am trying to figure how to make a .htaccess RewriteRule so a visitor views: site.com/folder but is served site.com/f1/f2/f3/folder/index.php where f1/... is just an arbitrary line of folders. Have kicked mod_rewrite a little, and got some really weird results, none I was going for though. Any help wrapping my head around this is...

Can't get URL changed from IFRAME

Hi there, I have an IFRAME with a src that is a login, i'd like to know, in any way, if it has been logged in, so i tried to check if the URL has changed getting the .src property, and it is the same that the original. Is there a way, i know about the restrictions problems (it's not in my domain the url that i'm trying to get) to see if ...

regex to remove URL from text

I want to remove all occurrences of URL [full path, query string] from the text in Python. Any suggestions on how to do this? I am new to regex! http://example.com/url/?x=data This whole URL should be removed! Thanks ...

Double slash in resources

I get a application running over: Rails 2.3.5, Application is set 2.1.0 at enviroment.rb Ruby: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0] The Urls are generated right, but the resources like stylesheets, javascripts are generated with double slashes. <link href="http://127.0.0.1:3000//stylesheets/style.css?1254514155" medi...

how can I hide params I transmit to a method (like form_for seems to do)?

Hi, I've been searching for hours now and haven't found anything that helps. What I want to do: I need to call the check_login-Method (as below), which needs parameters. redirect_to check_login_users_url( :user => {:name => input[1], :password => input [2] }, :stylesheet => 'scaffold', :method => :get) The point is that thes...

which is better friendly url among the these ?

hi i want to know which of the following urls is best to use among them: http://www.website.com/index.php?i=123 http://www.website.com/i123/item-name/ http://www.website.com/item-name/i123/ http://www.website.com/i123-item-name.htm http://www.website.com/i/123-item-name.htm all comments are welcome.. ...

Should we check slugs passed in URLS or just use the ID?

For example, if you access this url :http://stackoverflow.com/questions/286004/hidden-features-of-modrewrite and this one http://stackoverflow.com/questions/286004/hidden-features-of-modrewrite-PUT_ANYTHING_YOU_WANT_HERE. It goes right to the same page, and it seems Stackoverflow doesn't check for a valid slug (as wordpress calls it). ...

What's the advantage of URLs with semantically dead components?

I noticed today that SO uses magic URLs in the form. For example, a question is ".../questions/[nnn]/[description]. As an experiment when showing a question I changed the description and hit enter. As expected, it did not affect the request and the question showed just fine, only with a garbage URL: http://stackoverflow.com/questions...

nginx/redis and handling tracking params in url

I am using nginx and redis in my website. For several items on my site, I want to add tracking params to their urls so that when a user clicks on an item, I can collect statistics of user usage apart from serving the content user requested. I am looking for methods on how to capture this statistics in redis from nginx, i.e. without hitti...