url

Google App Engine (GAE) cron on external url: http

Hi, I try to use GAE for a cron job. But I get a server error 500. Is it because I try to cron on a external url? I cannot find any documentation on this. When I use an internal URL it works fine. But I would like to cron job a php script on my website. Is there another way to do this? I am quite noob... Thanks for any help Christian ...

Generate canonical / real URL based on base.href or location

Is there a method/function to get the canonical / transformed URL, respecting any base.href setting of the page? I can get the base URL via (in jQuery) using $("base").attr("href") and I could use string methods to parse the URL meant to being made relative to this, but $("base").attr("href") has no host, path etc attributes (like win...

Django url and request GET in template

Hey, I am using "url" tag in my template and everything works fine, except I cant capture anything thats behind it. Since I have multiple filters on that page, that are kept via GET request in the url, I need to be able to apend them to it. What happens is, that when I select one filter url will change to some/url/?f=1, then when I sele...

Tomcat URL Authentication e.g: https://user:[email protected]

I am writing a tomcat app, and have a need to do authentication within the URL like this: https://user:[email protected] Except for the life of me i'm not sure how to set it up or able to find the docs to read up on it, clearly my google skills need work. Can anyone tell me where i should be looking for this kind of info or whe...

Enable Query Strings in Code Igniter

Hey, I am trying to implement Twitter's OAuth into my Code Igniter web application at which the callback URL is /auth/ so once you have authenticated with Twitter you are taken to /auth/?oauth_token=SOME-TOKEN. I want to keep the nice clean URL's the framework provides using the /controller/method/ style of URL but I want to enable quer...

500 error for long url iis7

I was getting 404 errors for some long URLs on a website I'm developing. After a bit of digging I discovered that this occurs when the length of certain aspects of the URL exceed configurable limits in IIS7. In this case the maxQueryString attribute of the requestLimits property needed to be increased in the web.config <system.webServer...

PHP something faster than explode to get filename from URL

My URL's can be absolute or relative: $rel = "date/album/001.jpg"; $abs = "http://www.site.com/date/album/image.jpg"; function getFilename($url) { $imgName = explode("/", $url); $imgName = $imgName[count($imgName) - 1]; echo $imgName; } There must be a faster way to do this right? Maybe a reg expression? But that's Chines...

Value of http://sitename.com vs http://www.sitename.com?

Over the last couple of years I've seen sites that drop the "wwww" from their URL's. I was wonder what advantages(technical or otherwise) this had over the "conventional" URL address? ...

show template in joomla (parameter)

I know it is possible in Joomla! to set the template temporarily to another template with an URL parameter. Does anyone remember the parameter? And how should the template be indicated? I expect something like index.php?template=mytemplate ...

curly brackets in url will not pass through validation vb.net

i have this url, http://www.poer.com/oneup.htm?zip={zip}. I need the {zip}, because in my code, when this page opens, I replace the {zip} with a zipcode say 10001. But in aspx, when i put validation for that txtbox, it wont let the {} pass through. This is the validation - ValidationExpression="http://([\w-]+.)+[\w-]+(/[\w- ./?%&=]*)?" ...

Stop default hashtag behavior with jquery

I'm using the following code to append a hashtag to the end of a url. That way someone can copy that url and take them back to that page, with certain divs visable. $("a.live").click(function() { window.location.hash = 'live'; $("#live).slideDown(); }); In this example I have a div called 'live', that would slideDown when a l...

custom url for taxonomy > vocabulary at Drupal 6

Hi friends, I'm new at Drupal. a question; I create a hotels directory site. I created Taxonomy>Vocabulary for locations like London, Liverpool, etc... For example the url below lists the London localhost/drupal/taxonomy/term/1 how can change that url to something like localhost/drupal/hotels/london is it possible? appreciate adv...

to get URL address

how to get URL address while every time page is refreshed in java..? i'm doing projects which requires URL(domain name ) while every ti e page is refreshed..!! ...

Launch Apple's Stocks app, with a particular stock selected

I would like to launch Apple's Stocks app to show information for a particular stock, on a non-jailbroken phone. I'm not interesting in how to get a quote or graph a stock myself, just opening Stocks.app. I was hoping that the Stocks app would have a custom URL format, so opening a URL like stocks://AAPL would do the trick. But I haven'...

What is the preferred way to read/write content from a URL in Java

What is the preferred way to open a connection to a website and then subsequently read the information on that page? There seem to be many specific questions about different parts, but no clear and simple examples. ...

Creating meaningful add URLs in Cakephp

Hi there, For my site I have a number of Orders each of which contains a number of Quotes. A quote is always tied to an individual order, so in the quotes controller I add a quote with reference to it's order: function add($orderId) { // funtion here } And the calling URL looks a bit like http://www.example.com/quotes/add/1 It...

Browser URL listener?

How feasible is it to implement a program that prompts the user with a message if they go to a specific website? For example, if the user types in www.thisismysite.com in their browser, I want my app to bring up a notification. How could I implement this? ...

Regex for url formatting (www.domain.tld to anchors)

Hi. I'm currently developing a little browser-based Twitter widget. Currently, I'm stuck with getting the URLs to work. I'm kinda newbie, when it comes to regex (I know, how to get parts of a string, but this one – tough one). So, I need a regex that would search/replace www.domain.tld -> <a href="http://www.domain.tld"&gt;http://www....

In MVC view page javascript file url not resolving

Hello All: I have one MVC view page in which I show different links and I am using ThickBox to show a different page when ever one of these links is clicked. In these pages, I am using jQuery functions to do some changes, but I am not able to resolve the jquery file path on the view pages. I need to give absolute path something like "ht...

How can I get the full query string of a page

Hi, I'm using joomla and acesef as a plugin and I need to get the full querystring as is. The problem is when I use $_SERVEr['QUERY_STRING'] it contains the joomla QS isntead of my custom parameters. A javascript or PHP solution would do. thanks Edit: Sample URL www.test.com/sc/my-account.html?action=payment-method I want to get ac...