url

How to pass multidimensional in URL with php

I want to know the way of passing multidimensional in URL with php. I have an array like this $number = $_SESSION["number"]; $number = $number+1; $_SESSION["number"] = $number; $_SESSION['count']$number]=array($_POST['buy_app_page'],$_POST['x'],$_POST['y'],$_POST['w'],$_POST['h'],$_POST['selected_values'],$number); $pixels_detail...

When to use URL/session/cookie variables?

I do a lot of php and javascript, but I think this is relatively language-agnostic question. Are there any best-practices for when to use each of: URL variables SESSION variables cookies I understand the inherent limitations of what some of them can't do, but it seems like their use can overlap sometimes, too, and those instances ar...

Get path from URL

Looking for a way of getting the path from an URL in PHP: I want to take: http://example.com/hurrdurr And make it: hurrdurr I only want the text after .com/ Can i do this with trim? ...

Can you use a php header redirect on a rtmp url?

Curious, as I've been asked to do this. I can't find any sort of protocol anywhere. ...

RESTful Strings matcher in Java

I'm looking for a Java library that evaluates REST-style URLs. Something like: public Result evaluate(String url, String pattern); The pattern would be something like: /users/{userId}/photos/{photoId}.html The result must include: indication if the url matches pattern the actual values of the url variables {userId} and {photoId} ...

How do i render a template inside another template?

Hello, I'm new in Django and Python and I'm stuck! It's complicated to explain but I will give it a try... I have my index.html template with an include tag: {% include 'menu.inc.html' %} The menu is a dynamic (http://code.google.com/p/django-treemenus/). The menu-app holds a view that renders menu.inc.html: from django.http import...

retry connection to rate limited URL until successful in Scala

I need make a GET call to a REST api which is rate limited. I can find out what the current rate limit is by making a call and checking the HTTP headers. If I've exceeded my rate limit, I should wait for a bit before retrying. I'd like to write something like: val conn = connect(url, _.getHeaderField("X-RateLimit-Remaining").toInt > 0, ...

Having trouble with a simple .htaccess redirect

I've been working on this for a while and have tried a lot of different solutions I've seen on the web and can't seem to get this to work. I have a site at www.mydomainname.com. The page that I want to handle ALL page requests is www.mydomain.com/index.php. I'd also like to set this up to work for any other domains that I point to this ...

Go back to the previous page on click of custom Back Button

I am using an image button and on click of it i want to go to visited page. Now i am using - Response.Redirect(Request.UrlReferrer.ToString()), It is going to previous page, but when i am in a page of some user details where the link is looks like - users.aspx?userid=25 and i visit some other page and click back(image button) i want to s...

Invert match with RegExp

Hi, I'm currently working on a pipe on Yahoo! Pipes. I got a RegExp to match an URL. Now, I need to match the unmatched in order to delete it, so that there is only my URL. My RegExp is: [A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+ How do I invert the matching? (It has to be done via another RegExp, YPipes doesn't support an...

List of OpenID Provider logo images and login URLs?

Is there a list of openid providers with their re-use logos and openid URLs? Like the login page here on stackoverflow? ...

URL with unprintable characters

What are some of the ways a url can be displayed in a browser control within a desktop and not allowing users to be able to get the url and enter it into a browser. Basically anyone who has the desktop app gets the app which the url points to for free but want to prevent users from using the url outside the context of the desktop app. I...

How to call an external URL from a ASP.NET MVC solution

Hello guys. First post inhere ever. So better make it a good one. I have a ASP.NET MVC 2 web application in which I have an actionResult I need to do a call for me. The thing is I need this A.R to handle some data operations and after that I need it to call an external URL which is actually a Company Module that handles sending messag...

Browsers, do they treat a random query string as a different file?

If I set a far future expire header for this file (take note of the query string): /css/getCSS.php?v=1284532156.css Will it treat the entire URL (including the query string) as a single file and respect the expire deceleration, but request the next version of the file... /css/getCSS.php?v=1284599999.css ...from the server as it won...

Constructing URL parameters in Rails 3

I am trying to use the following code to convert a hash of options (e.g. { :opt1 => 'a', :opt2 => 'b' } ) into parameters to be appended to a URL (e.g. example.com/page?opt1=a&opt2=b): ActionController::Routing::Route.new.build_query_string(options) where options is the hash. I get the following error: wrong number of arguments (0 fo...

Android InputStream following a rewriterule

I'm trying to parse an xml file from a website. Let's say the website is "http://example.com" This website has a htaccess rewrite rule setup to redirect anything with a "www" prefix to the host back to example.com. so "http://www.example.com" would redirect to "http://example.com" In my code I have a URL that i get the InputStream of....

Get URL from browser to C# application

How can I get the url from a running instance of Chrome or Opera using C# .NET windows form app? Thanks! ...

encode/encrypt url parameter

I want to encrypt a URL variable so that the user can't see the information when it is passed. I've found several scripts online but none of them work. Most seem to lean toward using base-64. Could someone help me write a short script that would encode or encrypt and then reverse that in the next page? It doesn't have to be super sec...

How to get currently playing iTunes Store podcast url from C#?

Is there a way to get the URL of a podcast or iTunes U stream that's playing straight from the iTunes Store? I try CurrentTrack.URL and it gives me a blank for Store streams, whereas it gives a working URL for "Radio" streams from the left sidebar: IITTrack currTrack = m_iTunes.CurrentTrack; string path = ""; if (currTrack.Kind == ITTr...

How to get $_REQUEST[] through URL in wordpress .

Hi I have a problem in my site on which am working on localhost. I am using pretty urls in my localhost.I have custom page templates for all the sites every page has a different header and footer and the content in it. I used <div class="btn_container"><a href="issues/?page_id=1038" class="btn_1" title="Food"></a></div> <div class="bt...