url

ASP.NET MVC Update Address Bar With Ajax Link

Hello, I'm trying to create an ajax-driven gallery where each photo in a sequence is loaded with an Ajax.Actionlink. The user can get to any given photo by passing a parameter to the action method, eg: Gallery/Index?photo=100 The problem is that when the user is cycling through photos with the Ajax.Actionlink's the URL is no longer be...

[WPF] Synchronously download an image from URL

Hi, I am trying to do a simple thing but I can't ... I just want to get a BitmapImage from a internet URL, but my function doesn't seem to work properly, it only return me a small part of the image. I know WebResponse are working async and that's certainly why I have this problem, but how can I do it synchronously ? Here is my functi...

force client browser URL switch from http to https

Hi all, I have a specific set for my websites. Apache on port 80 stunel on 443 forwards decrypted msg to 80 stunel on 2222 forwards encrypted to 443 WAN-> NAT 443 -> stunel:443 WAN-> NAT 80 -> stunel:2222 This obviously uses "WAN ssl" only for connections on port 443 from WAN. Is apache mod_rewrite able to force http:// like url to...

SEO - How to avoid search engine crawlers to not read entire URLs

I have about 7 query-string parameters in my URL : http://www.examplesitname.com/EN/en/tshirt-jeans.aspx?productid=324175730&documentid=295110&producttitle=Pyjama+Tshirt&categoryid=55479572&source=TreeStructureNavigation&numberpage=1&pos=TG_n_n If I break it down following are the query string parameters : produ...

fileNotFoundException when pointing to ebay.com from mobile

If I pass http://www.ebay.com to this. Somewhere along the way ebay changes my url, perhaps a redirect. What's weird is Android java can't open the page. u = new URL(txturl.getText().toString()); I get the error below as it apparently opening the new mobile site. I'm just wonder at what point my url changes and If I somehow stop this...

How to rewrite /foo-bar to foo-bar.html but /foo/bar to foo-bar.html using mod_rewrite?

How to rewrite /foo-bar to foo-bar.html but /foo/bar to foo--bar.html using mod_rewrite? In other words, replace all slashes in the request URI with --, then append .html. I wrote the following code: RewriteEngine On RewriteBase / # Take care of /foo/bar and /foo-foo/bar-bar RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_F...

Remove/hide port number from URL address.

It's not as simple as it looks. I've been given the task to add a third tomcat to a server that already has two Tomcats working. Problem is, this third Tomcat needs to be secure, and the port needs to be hidden. Since Tomcat 1 is currently using port 433 (secure) and Tomcat 2 is using port 80, my third tomcat is out of widely accepted ...

Update URL parameter with javascript, without ruining the history?

I'm looking for a way to update the url in the status bar.. I have a gallery, and when you click your way through the gallery I want the image ID to show up in the URL, so that the user can link directly to the image.. I've read about using hash and so. but as far as I've tried it, that "ruins" the history. If I click the back-button in...

Why the hash part of the URL is not in the server side?

For example if I type in the URL: http://www.foo.com/page.php?parameter=kickme#MOREURL In the server isn't the part: #MOREURL Is possible to send or get these part to the server without jQuery AJAX?. Thanks ...

How to prevent duplicate URL concatination after redirect?

Hi, I wrote a page login.jsp (tomcat6) which has login form (username, password etc). I've mapped the form action and servlet so the form submission results in invocation of login servlet. 1. login.jsp has form that invoke servlet. <form name="login_form" action="servlet/login" method="POST"> 2. servlet mapping in deployment descri...

Can I rewrite a URL without redirecting?

So I learned from this handy guide how to use .htaccess to redirect pretty URIs like foobar.com/baz to specific content that may reside at foobar.com/bazheader345.php?user=baz. What if I'd like to do the opposite? My anchors are static but I have a lot of content in different files - and none of them has a particularly pretty name. Say...

iphone: can i detect a url type?

I'm currently creating a twitter client for iphone. Basically, I have three kinds of url types I want to handle: Standard URL's (e.g. http://www.msn.com) YouTube URL's URL's containing links to a stream. When a user clicks a link.. instead of launching the web view and letting the webview decide whether to load quicktime player & y...

How to handle request on the page that was previously forwarded by servlet?

Hi, I have a JSP page that has 2 forms running on Tomcat 6. One is register form, Second is login form. (please pay attention to context path, it's going to kill me later) (regis_and_login.jsp) <% String path = request.getContextPath(); %> //regis form <form id="regis_form" name="register_form" action="<%= path %>/servle...

url referrer problem in gmail

Hi , I am getting Url referer in global asax file. try { if (Session["url"] == null && !Request.UrlReferrer.ToString().StartsWith("http://www.mydomain") && !Request.UrlReferrer.ToString().StartsWith("http://mydomain")) Session["Url"] = Request.UrlReferrer; } catch { } Its working, but if the url in gma...

classic asp urls rewrite and redirect

I want to re-write my website urls. my website is in classic ASP. I hv ISAPI re-write on my hosting server. I want to rewrite and re-diredt my urls like follows. "http://www.mysite.com/fld1/pg1.asp" to "http://www.mysite.com/fld/fld-1/" can anyone tell me the rule for it. tyries many rule sbut not working. Looking forward to hearin...

Alternative syntax to GET in url

I've inherited terrible code in the past, but one idea in there struck me as a logical step. It's to use non-standard get queries for links inside the application. So instead of /search?category=23&city=Venice when applicable, use /search/category-23;city-Venice These kind of uris get parsed for comfortable use by the system and ...

Methods of reducing URL size?

Hello... So, we have a very large and complex website that requires a lot of state information to be placed in the URL. Most of the time, this is just peachy and the app works well. However, there are (an increasing number of) instances where the URL length gets reaaaaallllly long. This causes huge problems in IE because of the URL l...

Current url into cookie file.

Short question is : "How do I save current url into cookie file?" And the whole problem is as follows. I have to save current filters that client have applied to my grid in his cookie, that next time he logs in the data looks just as he wants it to look like. The service doesn't have any "login" stuff, just provides available data to th...

REGEX: Capture Filename from URL without file extention

So I am trying to create a Javascript Regex that captures the filename without the file extension. I have read the other posts here and 'goto this page: http://gunblad3.blogspot.com/2008/05/uri-url-parsing.html' seems to be the default answer. This doesn't seem to do the job for me. So here is how I'm trying to get the regex to work: ...

Is there a "special" URL param to force SWFObject to show alt content?

I remember doing this years ago, but can't remember if it was with SWFObject. Anyone herd of this before? I guess it would basicly disable SWFObject from switching the altContent for the SWF. I though it was something like: www.mysite.com?noflash=true But can't remember the real one (if it exists). Thanks ...