url

What does this javascript code mean and how to i decode it using php

this code has a URL in it, how do i use php to decode the url out of it: <script type = 'text/javascript' > eval(function(p, a, c, k, e, d) { while(c--)if(k[c])p = p.replace(new RegExp('\\b' + c.toString(a) + '\\b', 'g'), k[c]); return p} ('1l.1k(\'<7 13="1j"1i="1h:1g-1f-1e-1d-1c"p="o"n="m"1b="3://b.5.a/9/1a.19"><2 1="t"0="s"/><2 1=...

What is IIS 6.0 doing with slashes after the page name in a URL?

Had a question from a client which stumped me. They are using IIS 6.0 and for some reason, instead of making a normal request for a page on their server which I'll call www.domain.com/Default.aspx someone typed www.domain.com/Default.aspx/randomstuff It seems that IIS's response was to serve Default.aspx as normal, but, as far as the b...

ajax request changing url

Hi, I have a pager on a table using ajax and I would like each such request also to change the browser's url, so when I hit refresh button I won't skip back to first page. I was fighting the Url parameter of AjaxOptions, but it keeps winning over me. Please help. Trim ...

open a url feed in codeigniter

What's the best way to open a URL feed in codeigniter? I'm assuming I can't put the URL in a file upload input, so should I use a normal text input and then validate that the URL is not malicious? If so, what validation tests should I perform on the user inputted string? Would checking the file extension be enough or can this easily be m...

Rewrite PDF submit URL at runtime

We have several forms which we created in adobe livecycle designer. Each form has a submit button to post the data typed in the PDF fields back to a URL. The problem is that we want to change the post URL at runtime dynamically. We decompressed the pdf and viewed it in wordpad and found the URL in plain text. We then attempted to ope...

Speed difference between anonymous class and IDictionary<string,object> for htmlAttributes in ASP.NET MVC

I am trying to optimize my ASP.NET MVC application using some techniques that include URL generation tweaking a la: http://www.chadmoran.com/blog/2009/4/23/optimizing-url-generation-in-aspnet-mvc-part-2.html If the speed difference is so large between using RouteValueDictionary in place of anonymous classes, then should I also look to u...

Separate a HTML hyperlink

Is there a way to separate the URL name in a hyperlink so it continues onto the next line? In the application I am using I need to use a long URL and the space is limited so it wraps around to the next line. However, a space is automatically added to it and the link is then broken. Is there a continuation character to tell the applica...

C++ urljoin equivalent

Python has a function urljoin that takes two URLs and concatenates them intelligently. Is there a library that provides a similar function in c++? urljoin documentation: http://docs.python.org/library/urlparse.html And python example: urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html') ==> 'http://www.cwi.nl/%7Eguido/FAQ.ht...

Java URLEncoder changing special character?

I want to use java's URLEncoder class to encode my url strings. However, by default it converts spaces to '+' (plus sign). I'd like it to use '-' instead (similar to how this site encodes its urls). I'm wondering what the best way to do this is? Should I just use its built in functionality and then do a string replace (from '+' to '-...

Java URL problem ?

Greetings all, I am trying to download 'gz' file using URL class .Code snippet is as: URL url = new URL("ftp://ftp.wwpdb.org/pub/pdb/data/structures/all/pdb/pdb132l.ent.gz"); InputStream conn = new GZIPInputStream(url.openStream()); But it throws the error: Exception in thread "main" java.net.UnknownHostException: ftp.wwpdb.o...

ASP.NET MVC URL generation extensibility points

What are extensibility points of URL generation in ASP.NET MVC? Routes - virtual path depends on it ??? Addendum 1 Particularily, I need to control not only path part of URL but the host also. And I'd like to embed my generation logics into MVC Framework so that any call to standard Html.ActionLink method would involve my logics. It ...

Sharepoint Wiki re-use of link

In a Windows app we have a link to create a document in our Sharepoint Wiki (socially created help system) http://maxnet/IT/Development/_layouts/CreateWebPage.aspx?List={9d81229a%2D29f5%2D4dc1%2D80f8%2Deb10c55b906b}&amp;RootFolderUrl=Help%20Wiki&amp;Name=HowToPrint Calling this page several time, even after the Wiki doc was created sti...

Generating a link containing a fragment with ASP.Net MVC Routelink

I'm trying to use Html.RouteLink within a view to generate a link to a named anchor on another page. There's a few definitions for RouteLink that include a fragment option but I'm trying to figure out if there's another way. public static string RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName, st...

Facebook page serving, bookmark ajax hashes, but no redirection when JS disabled

Hi, I would be grateful to find out some really weird things I have seen on facebook URLs If I bookmark this URL (found when JS is enabled) http://www.facebook.com/HumanRightsWatch?v=app_2344061033#!/HumanRightsWatch?v=box_3 Then disable JS I then proceed to revisit the same url e.g. http://www.facebook.com/HumanRightsWatch?v=app_2...

java.net.URL read stream to byte[]

Hi folks :) I`m trying to read an image from an URL (with the java package java.net.URL) to a byte[]. "Everything" works fine, except that the content isnt being enterely read from the stream (the image is corrupt, it doesnt contain all the image data)... The byte array is being persisted in a database (BLOB). I really dont know what t...

Ruby URL regex matcher

Hey, I have some content with a list of URLs contained in it. I am trying to grab all the URLs out and put them in an array. I have this code content = "Here is the list of URLs: http://www.google.com http://www.google.com/index.html" urls = content.scan(/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*...

Passing CGI parameters to a form via an URL

Hello everyone! I am trying to pass arguments to this CGI form (http://www.westegg.com/inflation/) through the URL, so I don't have to manually type them in, and so that I can generate URLs through other means for faster use. Here is the CGI form code from the site: <form action="infl.cgi" method="post"> Enter the amount of money: <i...

What is the correct term for a URL such as http://example.com/script?foo=bar ?

I need to refer to URLs such as the one mentioned in the title for my dissertation and I'm not sure what the technical term is (or if one exists). It's the foo=bar part that I'm particularly interested in as I use it as an indication that a directory traversal vulnerability may be present. Thanks ...

How to indicate "accessed" attribute in Bibtex file when citing urls with IEEE?

According to the IEEE citation style reference, in case we cite urls the access time of the url should be indicated as well. Does anybody know how to indicate this when using BibTeX? Thanks, Zoltan ...

Is it possible to decorate include(...) in djano's urls with login_required?

I have a few restricted areas on the site, for which I would like to specify login_required decorator. However I would like to do that once per inclusion in main urls.py, not per individual url in included urls.py So instead of: /private/urls.py: (r'^profile/$', login_required(profile)), I'd do something along the lines: /urls.py ...