2
голосов
2ответов
2327 просмотров

Google analytics page name

Hey guys, Is it possible to use another name for the page that is currently being tracked instead of the url. The reason I ask is that I have not implemented friendly url slugs instead we have Products/Details/100 or whatever the page is called. So when you login to google analytics you can see...

5
голосов
3ответов
38515 просмотров

Relative paths in spring classpath resource

I have a bunch of spring config files, all of which live under the META-INF directory in various subpackages. I have been using import like the following... <import resource="../database/schema.xml"/> So a relative path from the source file. This works fine when I am working with a l...

104
голосов
10ответов
154930 просмотров

Validating URL in Java

I wanted to know if there is any standard APIs in Java to validate a given URL? I want to check both if the URL string is right i.e. the given protocol is valid and then to check if a connection can be established. I tried using HttpURLConnection, providing the URL and connecting to it. The fir...

4
голосов
2ответов
2287 просмотров

How does emacs url package handle authentication?

I have not seen a really good example on the web. How can I add authentication to a request like this: (defun login-show-posts () (interactive) (let ((url-request-method "GET") (url-request-extra-headers '(("Content-Type" . "application/xml")))) (url-retrieve "http://localhost:...

0
голосов
2ответов
1989 просмотров

Reset input values from GET url params using jQuery

This may seem like an odd one, but I want to be able to fill in a static web form using values passed in via a GET param list. Say I have a page, 'self.html': <form action="self.html" method="get" accept-charset="utf-8"> <label for = "40">New Question?</label> <input t...

2
голосов
2ответов
673 просмотров

Firewall / visited websites logger

I have a firewall implementation and I want to log all the websites visited on the machine. So when the user enters an address in the browser(any browser) or clicks a link to be able to log the visited address. The problem is that I want to log only the visited address and NOT the other resourc...

0
голосов
2ответов
134 просмотров

Get result of a JS file directly? (sorta AJAX related)

As I have known AJAX in the past, it has gone something like this: a server side language (in my case PHP) file generates xHTML has JS attached. The JS queries another file, with parameters set in GET or POST. This queried file's entire output is returned to the JS, which in turn makes a change o...

1
голосов
1ответов
49 просмотров

Method for generating numerical values from a URL

In the 90s there was a toy called Barcode Battler. It scanned barcodes, and from the values generated an RPG like monster with various stats such as hit points, attack power, magic power, etc. Could there be a way to do a similar thing with a URL? From just an ordinary URL, generate stats like th...

10
голосов
4ответов
12605 просмотров

url builder for python

I know about urllib and urlparse, but I want to make sure I wouldn't be reinventing the wheel. My problem is that I am going to be fetching a bunch of urls from the same domain via the urllib library. I basically want to be able to generate urls to use (as strings) with different paths and query...

39
голосов
4ответов
28473 просмотров

How to force a page to reload if all what was changed in url is hash?

I am trying to reload current page with different url hash, but it doesn't work as expected. (Clarification how I want it to work: Reload the page and then scroll to the new hash.) Approach #1: window.location.hash = "#" + newhash; Only scrolls to this anchor without reloading the page. App...

5
голосов
4ответов
2587 просмотров

Is https retained on relative form action URLs?

Consider a page with a form that is visited via https. If the form action has a relative URL to the form page, is the https protocol retained? Ex: you visit: https://example.com/cart.html which contains the form tag: <form name="form1" method="post" action="SubmitOrder.aspx" id="form1"&g...

2
голосов
3ответов
2247 просмотров

Asset URLs without cache timestamps in Rails

I'm using a transparent PNG with the Google IE fix library. This fix only works on images urls that end in "-trans.png". Rails' timestamp-based caching is causing problems with this. When I use image_path() to generate the URL for the image, it appends the file's last-modified timestamp to the i...

5
голосов
3ответов
2098 просмотров

Is it possible for PHP to follow a URL?

Is it possible for PHP to take a URL, wait for the redirects to go through, and then fetch the url of the page it's on?

0
голосов
3ответов
1262 просмотров

jQuery and url re-write

I am having a wierd error and jQuery not working depending on how the url is written. if the url is /index.cfm?show=about-us all is good. BUT if the url is /index.cfm/show_about-us jQuery doesn't seem to load correctly and I get a "$ is not defined" error in fireBug I can't use the standa...

3
голосов
2ответов
3097 просмотров

file name with special characters like "é" NOT FOUND

I have a folder on my website just for random files. I used php opendir to list all the files so i can style the page a bit. But the files that I uploaded with special characters in them don't work. when i click on them it says the files are not found. but when i check the directory, the files ar...

1
голосов
2ответов
261 просмотров

question about URLs

is it possible to have a url that has a param with an & embedded in the value (eg &FirmName=Test&Firm) and not have the browser treat that & in the value as the beginning of another param???

1
голосов
2ответов
563 просмотров

Complex htaccess rewrite rules - where do i start?

I have asked on here before about mod_rewrite and got the perfect answer but now I need to do something more complex and really needed the advice of someone who knows mod_rewrite much better. My rewrite rule looks like this so far: RewriteRule ([a-zA-Z_-]+)/([0-9]?) index.php?cat=$1&page=$2...

0
голосов
2ответов
350 просмотров

Reading the .htaccess DirectoryIndex and Rewrites with PHP

Is there an inbuilt way to read the active DirectoryIndex in .htaccess (or httpd.conf etc) with php? Also, is there a way to determine which file the httpd will execute using PHP given a url if rewrites are being used? Basically, given a URL, I want to use PHP to figure out which file the httpd...

1
голосов
2ответов
3721 просмотров

Applescript to open .url files on OS X Firefox

For reasons that only the developers can understand, Firefox will create and open .url files on Windows and .webloc files on OS X but won't allow the Windows version of Firefox to open .webloc files or the OS X version of Firefox to open .url files. (.url files open in Safari but that's not good ...

26
голосов
3ответов
10120 просмотров

Maximum length of URL fragments (hash)

Is there a length limit for the fragment part of an URL (also known as the hash)?

1
голосов
1ответов
2371 просмотров

Custom URL for each user in PHP

Is it possible to have a website where each user gets their own URL like: www.thewebsite.com/myusername I want each user site to be the same, the only reason the name matters is if a person visiting the site signs up, they get their own custom url, but the person they signed up under is kept tra...

5
голосов
1ответов
390 просмотров

Content-Type and Representations

What is the common convention for supporting multiple representation (e.g. html, json, xml) for resources (e.g. blog, user) in django? First, I don't know how I should format my urls. For example, what your take on using either of these urls to request xml format /<resource>.<format&...

0
голосов
2ответов
2641 просмотров

URLs stored in database for Django site

I've produced a few Django sites but up until now I have been mapping individual views and URLs in urls.py. Now I've tried to create a small custom CMS but I'm having trouble with the URLs. I have a database table (SQLite3) which contains code for the pages like a column for header, one for righ...

105
голосов
4ответов
64416 просмотров

How do short URLs services work?

How do services like TinyURL or Metamark work? Do they simply associate the tiny URL key with a [virtual?] web page which merely provide an "HTTP redirect" to the original URL? or is there more "magic" to it ? [original wording] I often use URL shortening services like TinyURL, Metamark, and ot...

0
голосов
2ответов
321 просмотров

how twitter passes query variables?

I notice that when I browse pages in Twitter. Instead of having some like twitter.com/home.php?var1=2&asjfaj...etc. (the most common way), the link is just Twitter.com/#home or twitter.com/inbox or twitter.com/followers. my guess is, they use sessions variables to pass information acros...

1
голосов
3ответов
76 просмотров

Figuring out which files are included rendering a URL with PHP

How can I use php to determine which files are invoked and included given a url only. eg. the URL, www.mydomain.com/index.php might use: index.php includes.php content.html I want to give php the url and it return the filenames. Thank you :-)

5
голосов
3ответов
8319 просмотров

How to open a UITextView URL in UI Web View?

In my iPhone app an UITextView is containing an URL. I want to open this URL in an UIWebView instead of opening it into safari? My UITextView contains some data along with an URL. In some cases the no. of URLs can be more than one. Thanks Sandy

171
голосов
4ответов
200026 просмотров

Redirect to external URI from ASP.NET MVC controller

I'm trying to redirect to external url from an action method but can't get it to work. Can anybody shed some light on my error? public void ID(string id) { string url = string.Empty; switch (id) { case "DB2FCB11-579F-4DA2-A68C-A6495B9BAAB5": ...

24
голосов
3ответов
18788 просмотров

SSL and mixed content due to CSS background images

I have a web page containing am entry form. HTTPS is enabled via an Apache redirect for all requests matching that page. Unfortunately, because the CSS pulls in external images using 'background-image: url(/images/...)', the browser will generate a warning message that the page contains mixed co...

530
голосов
10ответов
513090 просмотров

Which characters make a URL invalid?

Which characters make a URL invalid? Are these valid URLs? example.com/file[/].html http://example.com/file[/].html