I have a JavaScript widget which communicates with my Rails app by creating tags in the DOM. Every once in a while, I see a malformed request in my server logs, where the URL is truncated at 255 characters:
http://myapplication.example/mycontroller/1/myaction?hostname=www.mycustomer.example&request[param_a]=3&request[param_b]=1...
I'm building a site that has products, each of which belongs to one or more categories, which can be nested within parent categories. I'd like to have SEO-friendly URLs, which look like this:
mysite.com/category/
mysite.com/category/product
mysite.com/category/sub-category/
mysite.com/category/sub-category/product
My question is: Is...
Hello!
I'm using ASP.NET MVC to develop a website and I need to customize my URL to use a name that is not the name of my Controller.
I want to use this Class/Method names:
public class CompanyController:Controller {
public ActionResult About() {
return View();
}
}
But I want to use the URL http://www.mysite.com/the-c...
I have a Django project. Given a url, how can I know which view will be dispatched to handle the request?
...
Hi,
i want to hide url from user. In this case if i have dedicated server i can open site by ip address directyly but it is shared hosting also i don't want to use frames. I am waitting suggestions, thanks.
...
I am using codeigniter.
My products page shows all the products we have and then users can click on each product_name to get more details about that particular product. So, I have declared products as the class and product_name as a function within the product class - so I could get the url www.company.com/products/product_name.
When I...
Hello there,
I am trying to add a query string at the end of URL for a hyperlink control as follows
HyperLink testLink = new HyperLink();
testLink.NavigateUrl = "http://www.example.com" + "?siteId=asd343s32kj343dce";
But when this is rendered in the browser it is displaying as
http://www.example.com/?siteId=asd343s32kj343dce (/ char ...
Hi, I'm looking for a decent regex to match a URL (a full URL with scheme, domain, path etc.)
I would normally use filter_var but I can't in this case as I have to support PHP<5.2!
I've searched the web but can't find anything that I'm confident will be fool-proof, and all I can find on SO is people saying to use filter_var.
Does anybo...
Hello, gentlemen.
Here is the problem: I have a WCF service and a few sites connecting to it and sending certain messages.
How can I obtain client's URL (not IP) from the WCF service to assign it with the message? A kind of statistics.
I'm using C#.
Thank you in advance,
Tim
...
Is there any disadvantage of using URL expiring concept to protect online videos?
...
Hi guys. I have a Java project with a toolbar, and the toolbar has icons on it. These icons are stored in a folder called resources/, so for example the path might be "resources/icon1.png". This folder is located in my src directory, so when it is compiled the folder is copied into bin/
I'm using the following code to access the resourc...
I have two domains ("this_site.com" and "that_site.com") that I want to point to the same place (same set of files).
BUT
What I really want to do is maintain the original URL in the address bar while the visitor accesses the different pages.
Example: The primary domain holding the web files is "this_site.com". If I type in "that_site....
Hello,
For example, your application is using this way for passing vars into your application
example.com/controller/method/var_1/var_1_value.var_2/var_2_value/ etc.
I think it will be really useful to create function for creating such URLs from arrays
Input
array(
'controller' => 'controller'
'method' => 'controller_method',
'var_...
Hi, i need some help please,
i want to show an image on my Page depending of the first directory of the URL.
Example:
In Any of this URLs will show the image1.jpg
www.mysite.com/audio/amplifiers/400wats.html
www.mysite.com/audio/
www.mysite.com/audio/amplifiers/
In any of this others will show the image2.jpg
www.mysite.com/video...
Has anyone implemented a good system for ensuring that output is properly HTML-encoded where it makes sense? Maybe even something that recognizes when output should be URL-encoded or JSON-encoded instead?
The lazy approach — just encoding all inputs — causes problems when you want to send those inputs to a database, or to a block of Jav...
hi ...
i would like a simple help...
i have a url like this:
example.com/profile.php?id= & name=
my .htaccess file like this.
RewriteRule ^profile/(.)/(.) profile.php?id=$1&name=$2
so i have a end url like this:
example.com/profile/id/name
i can make
example.com/id
but how can i get a url like this:
example.com/name
??
thax
...
I've got an offline html page on my hdd with some javascript that does different things depending on the url parameters. when I open this page in firefox and opera everything works fine but IE does not allow me to attach anything to the url. it shows an error that reads "windows cannot find 'filename'". I guess the IE takes it for a fil...
Hi
I am trying to use Process.Start to launch a local html file in the default browser.
An example url is as follows:
"file:///C:/Documentation/HelpContent/default_CSH.htm#SectionA/Topic1.htm"
Problem is, the "#SectionA/Topic1.htm" bit gets stripped off for some reason, so that this information isn't passed to the browser. It does ...
Hello all ,
URL u=new URL("telnet://route-server.exodus.net");
This line is generating :
java.net.MalformedURLException: unknown protocol: telnet
And i encounter similar problems with other URLs that begin with "news://"
These are URLs extracted from ODP , so i dont understand why such exceptions arise..
...
I have a dot-tk (www.dot.tk) domain that redirects to a blog of mine.
But I have a problem. If a visitor of the blog who have entered through the tk-redirection, navigates to a specific post or even follows a link that leads elsewhere, then the URL-bar doesn't change to reflect the change. It always show the tk-address only. I want sub-u...