url

Where is the difference between locating a ressource and identifying a ressource?

Is there any? (talking about URI = identifying, and URL = locating). Isn'g both the same thing? ...

URL - Encodeing (javascript) method="GET"

I have a form with some input fields (6). When I click the submit button "I would like to format the URL" in such a way: /actionname?input1|input2|input3|input4|input5|input6 and maybe for null values: /actionname?input1|input2||input4||input6 and maybe a time-stamp for when the user clicks the submit button. Can this be done using j...

Grails way to prevent bad request "ids" on url

Like here in stackoverflow if i force put bad characters on URL in id place it redirects you to a page error. I would like to know if with Grails it has some kind of plugin for prevent id like: "123$#3" or an easy way because i have a lot of actions and do something like below dont seems to be the best way: def find = { def v...

What is a website that ends with a .sd extension?

I know there are: .aspx .php .html .htm This is the first time I'm seeing a website with .sd at the end. What exactly does that mean and is there a wiki that explains a bit more? For example, this website: http://www.racingpost.com/horses2/results/home.sd First time I'm seeing it and I'm just curious. ...

Loading Java ImageIcon with Image Served by PHP Script

I need to create an ImageIcon from an image on a remote server. When I loaded it with a URL like http://www.server.com/1.png it worked fine. But recently the server was changed so that the images are stored outside of web root and must be accessed with something like http://www.server.com/get_image.php?id=1, where get_image.php outputs...

Assistance with APACHE www.conf file correctly matching location?

I have one location match that correctly works: <LocationMatch "^/user/storage/subaccounts(/[a-zA-Z0-9]+)?/?$"> this correctly forwards for something like /user/storage/subaccounts/exampleuser or /user/storage/subaccounts/ I'd like to setup a locationmatch for /user/storage/subaccounts/exampleuser/admin My attempt at this was: <Loc...

How do I prevent ASP.NET from converting the & symbol to &amp; when adding a url to a control's attributes?

This is what I'm adding and it renders the & as &amp; sharelink.Attributes.Add("addthis:url", "http://" & Request.Url.Host & "/Resources/PublicView.aspx?RID=" & R.ResourceID & "&Key=" & Key) I need it to render this ?RID=64&Key=%2fwEUKwEDAgQCFAJA instead of this ?RID=64&amp;Key=%2fwEUKwEDAgQCFAJA ...

Grails set language (internationalization) via URL mappin

Hi all, I'm interested in supporting English and French in my Grails app with user-friendly URL. format: /appname/language/controller/action example: /store/en/product/list What is the best way without passing as a parameter (?lang=fr) then rewriting the URL. Thanks ...

NSURL's parameterString confusion with use of ';' vs '&'

I'd like to use NSURL's parameterString method to parse out the parameters of a URL I've been passed. It says URL must conform to RFC 1808 but now wondering if ours do?!? We use something like: http://server/path/query?property1=value1&amp;property2=value2 but RFC 1808 never mentions the ampersand (&) as a valid parameter separator (...

OAuth Callback procedure for mobile devices

Hello, I am designing a Netflix Application for BlackBerry mobile devices. I am currently working on the OAuth. I am at the point where I can generate a Netflix login page in an embedded browser field in my application. After the user signs in, Netflix will send the user from the login page to a specified callback url. The callback url...

Change a relative URL to absolute URL in Objective C

Hi. How would I take a file in the application's directory (the same folder the .app is in), and get it's absolute path. Say the relative path is "Data/file.txt," how would I use Objective C to get that as an absolute path? I have the user enter their home folder name, if that is any help. Please help, HiGuy ...

ASP.NET MVC URl Routing: How to deal with ?Action=Test parameter

I am required to implement a simple webapp for a online competition for a simple game. I need to handle a Get request and respond to that. I thought, let's just use a bare ASP.Net MVC app, and let it handle the URL. Problem is, the URL I need to handle is : http://myDomain.com/bot/?Action=DoThis&amp;Foo=Bar I tried: public Action...

cURL 'malformed url'

This url 'http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&amp;friendID=39726387' works perfectly well in a browser but cURL return's error 3 (malformed url). Any ideas on a work around? EDIT: cURL code: function get_web_page( $url ) { $options = array( CURLOPT_RETURNTRANSFER => true, // return web p...

What's the standard way to generate a url like stuff?

$arr = array('key1'=>'val1','key2'=>'val2'); $str = ''; foreach($arr as $k=>$v) { $str .= '&' . $k . '=' . urlencode($v); } echo substr($str,1); Or $arr = array('key1'=>'val1','key2'=>'val2'); $str = ''; foreach($arr as $k=>$v) { $str .= '&' . urlencode($k) . '=' . urlencode($v); } echo substr($str,1); Does the $k need to be...

jQuery how to replace src url

I have a page that I screen scraped, the scraped page used a relative path for their images and when I load my page, the url of my site is being inserted on the src attr. I need to find some way of replacing my url with the url of the remote site in order for the images and other items that reference it to show up properly on my page. ...

PHP custom CMS and SEO

Hi All, I have a custom CMS for the performing arts center in my town about to launch. They will have artists/events/media, etc. on the site via the interface I've built for them in php/mysql. My question has to do with google indexing and the CMS content. Odds are they won't be deleting archived shows (which will have a url like s...

What to do with a community URL style like Last.FM or Wikipedia?

Hi, I'm trying to understand how I should work with characters in URLs, this because I'm building a site where the user can store content and go to the content's page by digiting it's name in the URL. so, something like Wikipedia or Last.FM website. I see in the site, user can write something likehttp://it.wikipedia.org/wiki/Trentemøll...

PHP code to display substring of current URL?

Hello, I want to redirect my browser to a PHP page such that when the page loads, it will display to the user a substring of the current URL. For example, let's say I have a page called substring.php. My browser forwards me to: http://www.example.com/substring.php?oauth_token=123456 Is it possible to write some PHP code that will th...

How can I normalize/collapse paths or URLs in Python in OS independent way?

I tried to use os.normpath in order to convert http://example.com/a/b/c/../ to http://example.com/a/b/ but it doesn't work on Windows because it does convert the slash to backslash. ...

How to add/change param value to url using jquery

Hi, I am trying to add two parameters to the url (in the address bar). Basically a user click this link from a different location <a href="player.php">open player</a> I need to automatically load the the latest show from that list of shows displayed, the show is shown every day so i do not know the episode number. the address bar nee...