url

How to read text from a website using Javascript ?

I am writing an HTML code for my cell phone. Its essentially a Dictionary App where I input a word and I look up the meaning from say, Dictionary.com ; I am using Javascript to get the string but can I embed the word into the URL, "http://dictionary.reference.com/browse/" Is there any way of doing this ? ...

How do I URL-escape a string in Mathematica?

For example, urlesc["foo.cgi?abc=123"] should return foo.cgi%3Fabc%3D123 This is also known as percent-encoding. Also, for better readability, spaces should encode to pluses. I believe that's always acceptable for URL escaping. ...

How can I add GET variables to end of the current url in php?

I am trying to add a few different GET variables to the url. I could easily do a header redirect to the current page url and then just add the $_GET['test'] in the url. My problem is that I have some GET variables that are in the url already. What I want to do is: Check if there are any GET variables in the url If there is not, the...

Public XML URLs

Hi, Does anybody know of any public sites on the net that have URLs with a ".xml" extension? Need XML URLs. Thanks. ...

How to create a URL condition with PHP for Menu Highligting?

For example I have a menu item named Categories and under that I have 10 different sub categories. So the url currently would be something like this: http://domain/categories http://domain/categories/sub1 http://domain/categories/sub2 ...etc I want to do something if the url is on categories regardless of what sub categories it is in....

JComException while connecting to a URL

jp.ne.so_net.ga2.no_ji.jcom.JComException: IDispatch::Invoke(0x52,1) failed HRESULT=0x80020009L. I am getting the above exception while connecting to an URL. I have no idea why my code is throwing such exception. Need help. Thanks in advance! ...

Drupal 6: URL Alias setting for Vocabulary/Term to Term-customtext

Hi friends, I have a Vocabulary for location. and as a default it takes path as www.blabla.com/location/uk/london and I need to make it as www.blabla.com/london-restaurant My configurations are as below. but somehow it doesn't work at all :/ Appreciate advises!! Thanks a lot! Terms in Location view: Automated URL alia...

Tool to reverse map JSP to URL?

Is there a tool to automate the task of finding out where a given JSP is used, by URL? Ultimately, the question I need to answer is, What URL(s) do I need to call, to see the output of this JSP in my browser? Finding out involves searching for the JSP name, then searching for any JSPs that include it (possibly through several levels), ...

Encoding URL components with an ampersand &

Seems like a very simple question here: I've got a program where someone is entering a string M&S in a form and running a query. I understand the & is a reserved character and therefore must be encoded. The problem is it seems to be requiring encoding twice in some contexts. If the URL is used in a javascript onClick event, normal ...

jQuery get() method - not sure what it does with parameters it receives in this example

Hey all, I read from the jQuery website, that get() loads data from the server using a HTTP GET request. But this explanation doesn't suffice, such as for the example I provide below: Just to give some context for my question, when we assign the value of two parameters to a variable expoptions: var expoptions = $.extend(defaults, opti...

URL for the user profile? to be a subdomain or text after the slash?

Hi guys, I'm creating an online based system that has public user profiles for all users.. I'm wondering how to organize the URLs for these public user profiles? What could be better for the SEO and of course for the user friendliness? {username}.mysystem.com or mysystem.com/{username} or maybe even mysystem.com/users/...

DJANGO URL Validation, I just want to see if the URL exists

I want to check in django if a URL exists and if it does I want to show something on screen. e.g: if URL_THAT_POINTS_TO_SOME_PDF exists SHOW_SOMETHING ...

How can I change my multilingual urls from this example.com/index.php?lang=en to this example.com/en/?

Somebody told me that example.com/en is more friendly than example.com/index.php?lang=en. How can I change my URL last part from ?lang=en to /en/? (pd: I don't want to use gettext or any framework like zend to accomplish this) This is how I'm internationalizing and localizing my web page: (live example: alexchen.co.nr/) lang.php: <?...

how to find URL of the page where the Flash file is embedded

Hello people, I am writing a Flash app in Flex Builder 3. I have a problem. I need the URL of the place where the Flash app has been embedded. mx.core.Application.application.url This gives me the address of the original swf file, but I actually need the URL of the HTML file where this SWF has been embedded. is there a way ??? th...

Long URLs from short ones using C#

Hi, I've been using the LongURL.org API for expanding short URLs. The great thing about this service is that it returns a long URL, the title of the actual page and meta-info. The real problem I have is that it seems to take an inordinate amount of time to fetch the data. I'm considering shifting the request to JavaScript so that the U...

Security: Brute-forcing GET-requests by URL?

Hi everybody, what should my concerns be if I we're about to make an application that handles logins the following way: http://api.myApp.example/printSomething/username/password/ How insecure is it compared to a normal login page that are based on POSTed user details (username+password)? Is there a difference? Thanks ...

PHP: Does xmlrpc_encode_request() need allow_url_fopen?

How does PHP's function xmlrpc_encode_request() work? Does it need the value of allow_url_fopen set to true? Well, you access external URLs with this function, so does it need this configuration? I can't test it myself at the moment, unfortunately. Thanks in advance! ...

How do I provide a URL that will always download the latest version of a file?

I want to provide a URL such as "...mysite.com/my_installer.exe", but I want to be able to make it point to the latest version of my installer. So if I create version 2 of the installer, the url will download "...my_installer_v2.exe". I've looked at general URL redirection - 301 redirects, .htaccess etc - but they seem to be geared to...

How do I remove a variable name from a URL using htaccess?

So basically I want users to be able to go to my website with a URL of something like /45678, instead of having to use /?p=45678, so really I just want to remove the variable name. I've tried using mod_rewrite, but it seems that is only for removing the name when the page is visited. Thanks for the help, -Tom Update: Here is the curre...

Convert vBulletin to Drupal but maintain friendly urls for SEO?

I'm fed up with VB and looking to convert a big vBulletin board to Drupal. But I don't want to lose the links of the friendly urls and risk having everything re-indexed by Google. How can I maintain those urls? The site and huge has been around since 2002. I don't want to be penalised by Google. ...