Imagine you had a group of product categories organized in a nice tree hierarchy and you wanted to provide hackable urls to browse these. You could do something like this
/catalog/categorya/categoryb/categoryc
You could then quite easily figure out which category you should list the products for (note that the full URL is needed since...
We have a custom REST handler on ASP.NET that is configured like this to handle all incoming requests:
<add path="*" verb="*" type="REST.RESTProtocolHandler"/>
However, passing it a pipe character, properly encoded or not at all, triggers a validation error that seems to come from inside ASP.NET.
Accessing http://localhost:8080/%7c o...
I'm working on a new Wordpress site that is exhibiting some strange behavior. I pass it a URL with GET parameters in it, and the $_GET parameter is not populated. I see in the $_SERVER parameter that the REQUEST_URI has the full URL there, completed with the ?var=value part, but no love in the $_GET variable.
The URL is being redirect...
I would like to create dynamic urls that route to controller actions with an Id value. I've created the following route using a catch-all parameter
routes.MapRoute(
"RouteName",
"{id}/{*Url}",
new { controller = "Controller", action = "Action", id = "" ...
How can you get and set the hash or anchor part of an URL in pure Actionscript? When googling for a solution I've found explainations for doing it using JavaScript, but is it possible to get it without using JavaScript? (I'm using Actionscript 2, I may consider updating the code to AS 3, but it doesn't seem to be a quite straight forward...
Hello all.
I have a list of URLs and am trying to collect their "descriptions." By description I mean what comes up, for example, if you Googled the link. For example, http://stackoverflow.com">Google: http://stackoverflow.com shows the description as
A language-independent collaboratively
edited question and answer site for
...
I need to test for general URLs using any protocol (http, https, shttp, ftp, svn, mysql and things I don't know about).
My first pass is this:
\w+://(\w+\.)+[\w+](/[\w]+)(\?[-A-Z0-9+&@#/%=~_|!:,.;]*)?
(PCRE and .NET so nothing to fancy)
...
Is there a basic php method that accepts a URL and retrieves the date last modified from the header?
It would seem like something php can do, but I'm not sure which object to check.
Thanks
...
i’m trying to create a url string that works like this:
/app/process/example.com/index.html
so in other words,
/app/process/$URL
i then retrieve the url with
$this->uri->segment(3);
the forward slashes in the URL will of course be a problem accessing uri segments, so i’ll go ahead and url encode the URL portion:
/app/process/e...
Hello,
I'm not familiar with Adobe Air and I am uploading a file to a server. For simple testing purposes I have hard coded an upload URL (Specifically a url to a upload directory on the server to which the amf channels point) into the code. Is there a way in adobe air to get this server url at run time?
Or does the question not make a...
In asp.net 3.5, I'm rewriting the url
http://www.abc.com/archive/1108/harpersdecember
to the following
http://www.abc.com/article.aspx?docId=78
I'm using this code to do it:
Context.RewritePath("/article.aspx?docId=78");
It works fine locally but when I upload to the remote web server, I get a 404 when trying to re...
I would like to build a web application on Castle MonoRail, I was wondering how can we use an action with extension and another action without extension? How can HTML helper generator url for us?
Ex:
http://mysite.com/Products/list
http://mysite.com/Products/abc.castle
...
Hi
We have some issues in our application with skype taking over some of our urls, replacing them with a skype plug in that enables you to start calls. Looks like skype thinks they are phone numbers. I was wondering if there are some way to mark our urls such that skype doesn't think they are phone numbers?
Its described here http://ww...
Given my new understanding of the power of "includes" with PHP, it is my guess that ALL of my pages on my site will be .php extension.
Would this be considered strange?
I used to think that most pages would be .htm or .html, but in looking around the net, I am noticing that there really isn't any "standard".
I don't really think I hav...
I have a site with over 100 pages. We need to go live with products that are soon available, however, many site pages will not be prepared at the time of release.
In order to move forward, I would like to reference a "coming soon" page with links to pages that are current and available.
Is there an easy way to forward a URL to a Coming...
How do you safely encode a URL using Javascript such that it can be put into a GET string?
var myUrl = "http://example.com/index.html?param=1&anotherParam=2";
var myOtherUrl = "http://example.com/index.html?url=" + myUrl;
I assume that you need to encode the myUrl variable on that second line?
...
Is there a widely accepted class for dealing with URLs in PHP?
Things like: getting/changing parts of an existing URL (e.g. path, scheme, etc), resolving relative paths from a base URL. Kind of like a two-way parse_url(), encapsulated with a bunch of handy functions.
Does something like this exist?
...
How does URL replacement on the google SERPs "sponsored links" work?
Some of the results have a function rwt attached to the onmousedown event, but the sponsored links don't have any event handlers as far as I can make out.
How does it achieve the behaviour of replacing the href, and still send you to the long /aclk?sa= link?
Upon savi...
Is there a sort of php script which will run a series of URLs and then direct the user to the final destination? the use of this is:
creating a checkout cart on a site that doesn't have a robust "wishlist" feature.
The script runs a series of "add item to cart" urls, and then the final destination takes the user to their cart of produc...
I'm looking for a good sample project, or web site reference, which gives a simple easy to understand overview of URL Rewriting and making Hackable URLs.
I've read a good amount about the concept, but I'm specifically looking for a good implementation example for a programmer to use to get started.
This is specifically for .NET 3.5, so...