Here's what I need to do. I'm using Google Chrome. I have page that auto-reloads every 5 seconds using a script:
javascript: timeout=prompt("Set timeout [s]");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload()
{
setTimeout('reload()',1000*timeo...
I want to write an online application that:
reads the URL from address bar of the browser
extracts its lexical features (like n-grams)
extracts its host based features (fetch DNS records online, its A, PTR, TTL fields)
classify the URL into malicious or benign (using machine learning)
Can anyone help me with 1 and 3?
...
I'm using mod_rewrite to rewrite pretty URLs to a form supported by a Spring 2.5 application.
e.g. /category/cat1?q=x => /controller?category=cat1&q=x
However from my controller I want to know the original URL the request came from (so I can generate a link if required). This approach is needed generically across all pages so it i...
Ok, a great example of what I am trying to achieve is at Google Translate. The URL: http://translate.google.com/#en|es|this is what I am trying to do makes a GET request using this URL: http://translate.google.com/translate_a/t?client=t&text=this%20is%20what%20I%20am%20trying%20to%20do&sl=en&tl=es&otf=1&pc=0
I'm not ...
For a search bot, I am working on a design to:
* compare URIs and
* determine which URIs are really the same page
Dealing with redirects and aliases:
Case 1: Redirects
Case 2: Aliases e.g. www
Case 3: URL parameters e.g. sukshma.net/node#parameter
I have two approaches I could follow, one approach is to explicitly check for redirects ...
Iam writing a program to check if the site is in the whitelist or not? where can i obtain such a list of whitelisted urls ?
...
I have syntax :
'localhost/ab/directory.php?id=200'
id=200 is jenny id member
how to change be 'localhost/ab/jenny' in address bar?
is possible?
Thanks
...
I have read the term "composite URI", but I'm not familiar with what it means. Is there such a thing?
I have a CompositeUri class in an application I'm building and I would like to know if I should choose a different name.
...
I have asked this question here about a Python command that fetches a URL of a web page and stores it in a variable. The first thing that I wanted to know then was whether or not the variable in this code contains the HTML code of a web-page:
from google.appengine.api import urlfetch
url = "http://www.google.com/"
result = urlfetch.fetc...
In JSP how do I get parameters from the URL?
For example I have a URL www.somesite.com/Transaction_List.jsp?accountID=5
I want to get the 5.
Is there a request.getAttribute( "accountID" ) like there is for sessions or something similar?
...
In my views I sometimes use this:
return HttpResponseRedirect("/account/")
But that is hardcoding a url in my view, which I think is not very nice.
So what is the alternative? I know I can generate urls directly from the urls.py file, in my templates, via the {% url %} tag, so there has to be something I can do in my views, right?
...
Hy there
Is there any posibility to redirect an URL like "www.mydomain.com/subfolder" to www.mydomain.com"
I'm using a windows server and have the posibility to use IIS7 to do that. Does I need IIS for doing that or is there an easier way?
What I exactly want:
I have installed a CMS on /subfolder, and now the CMS is reachable under "...
Hi,
I have HTML string which is created using an xml file by a third party library. The HTML string contains custom URLs for images and videos (Ex:image://). Is there is way by I can handle these resource load request and load them correctly in UIWebView?
...
Hi,
We're about to launch a little twitter Christmas competition, and I've run into a little snag.
To enter, people will need to post a tweet in the following format:
@user blah, blah, blah #hashtag
Currently, I have a form where they enter their answer (the blah, blah, blah) and a PHP script which encodes the entire statement and a...
This is a really great function written in jQuery to determine the value of a url field:
$.urlParam = function(name){
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}
// example.com?someparam=name&otherparam=8&id=6
$.urlParam('someparam'); // name
$.urlParam('id'...
I'm looking for a method that will allow me to take two URL's and decide if one is in the scope of the other, meaning that it is either in the same folder or in a subdirectory beneath it. I could write the method myself if I had to, just wondering if anyone knew of something already in the ruby libraries.
Ex. of what I mean:
url1 = 'htt...
Hi
How can I future-proof my client URL links to my server for future HTTPS migration?
I have a .net winforms client talking to my ruby on rails backend. If I move the website in the future I want to make sure that my API links from the client don't have to change.
Or is this something a hosting provider can let you configure.
Oh, a...
Is there a .NET encoding method I could use to encode a URL to be passed within a URL parameter?
For example say I have:
url_of_interest = "http://asdf.asdf/asdf.htm"
and I want to include this as one (1) URL form parameter when I do an upload to a web-application:
http://mywebservice/upload?url=<<encoded URL here>>
...
We have a page with a form in OpenACS, and we'd like to redirect users to an external site/URL containing a totally different page/form.
How is it best done (on either the OpenACS-side or AOLServer-side)?
(Can anybody please tag this with openacs, aolserver and url-redirection? Thanks!)
...
Social media is being used nowadays to spread the word of certain newspost bij one-click, the site i'm currently working on is a museum. They have activities on certain days, the idea is that there will be a google calendar link as well to immediately post the activity on the calendar when interested.
Now I've been searching the net a b...