url

Why is using a URL containing a colon considered as a "potentially dangerous request"?

Someone (probably a bot) sent a request with the following URL to my ASP.NET 4.0 web forms application (running on IIS 7.0): http://ipaddress-of-my-applications-domain/bla1.bla2.bla3.bla4.bla5:) This caused an System.Web.HttpException. I received a logging email from ASP.NET HealthMonitoring I had configured, telling me: A potentially...

php rewrite url

Hello. Is it possible to have it so when a page is requested with a get parameter from an link, say www.mtsite.com?param=val That the parameter stuff is hidden, without using post and JS? Thanks ...

Change a relative URL to absolute URL

hi everyone. for example i've got a string like this: $html = ' <a href="test.html">test</a> <a href="http://mydomain.com/test.html"&gt;test&lt;/a&gt; <a href="http://otherdomain.com/test.html"&gt;test&lt;/a&gt; <a href="someothertest/otherdir/hi.html">hi</a> '; and i want to ap...

php: getting rid of ?p= query in url?

hey guys, i'm not looking for a mod_rewrite thing or anything related. i'm just not sure if this is possible or not? i'm using if(isset($_GET['p'])) … to check if ?p=something is set in my url, if not $foo = "bar"; if a ?p= is set e.g. ?p=something –> $foo = "something". got me? if i manually enter now ?p=bar to my url the string in m...

How to extract multiple patterns from txt doc.

I have a text document that lists urls with their subject and an email address. I need to extract all urls with their subject and the email address and put this all into a csv file. I just need to know how I can use regex to do this. Currently I am able to extract all urls but I need the email and subject associated with them. This is wh...

Rails 2 Trailing Route Parameter

I'm building an article/blog website where any article may show up within a series of URL paths. /section/article /section/page/article /section/page/page2/article This works, but what if I wanted to have the page number for that article (/page/123) be bound to those URLs /section/article/page/123/ /section/page/article/page/123 /sec...

jQuery:Something fishy about my URL?

The following URI works in my browser (getting back the intended xml file): http://ipaddress:port/server/gate?Command=GET%26info But when I write the following to work with jQuery, it doesn't. The response is 200 OK but I get a blank XML file. $(document).ready(function() { $.ajax({ type: "GET", url...

How to stop automatic url decode in Firefox & Safari?

in my web application i want to transmit some values through the url between pages. Because i have some special characters i decided to encode my values in order not to break my urls. in IE and Opera when i load my urls in a browser they stay encoded but in Safari and Firefox the urls are automatically decoded and my code breaks. in IE8...

How to take a redirection URL

I have a problem with redirection, in my work I have to make a connection to a URL that automatically go to another URL at this point it takes the credential (username and password) and redirect to a URL that contains a parameter which need me. How can I take this parameter? To be precise, I have to do this: Embed a Web browser wit...

Is there a method somewhere supplied by Apple which will trigger when a UIWebView changes pages?

I am trying to change the size of a webView when the website changes. What I need is to check the UIWebview's URL to see if it matches the one I am looking for. Or just changes at all. ...

How to create custom routes for certain actions in a CakePHP controller?

Coming from Django, I'm used to be able to organize my URL routings any way I see fit. For example, user registration would exist under the /users/ url. /users/ /users/registration/ /users/registration/optin/ /users/registration/thankyou/ However, I'm creating a user registration system in CakePHP and the default convention behaviour...

How do I get values from url and append them to existing values in url (php)

Hi. I have a link in my page that look like this: a href=?command=value but when I click the link and the page reloads it first load another include php file. That redirect the user based on the cookie. like this: header('Location: ?lang='.$redirect); So when the page loads the ?command=value is gone. I need to append &command=value in...

Java Load image from URLConnection

Hello. I have a URLConnection, that access a web page. URL url = new URL("https://domain"); con = url.openConnection(); con.setDoOutput(true); Then i sent some data to the server using con.setRequestProperty() I get the response cookies fro ma specified field using String headerValue = con.getHeaderField(6); I also get the...

Create another dimension to an array housing urls with base url.

Currently I have an array that lists email addresses as the key and urls as the values, I want to use parse_url (unless something better is suggested) and create another dimension to the array with the base url. This is what I currently have: array ( '[email protected]' => array ( 0 => 'http://www.google.co.uk/foo/bar', 1 => '...

How can I parse flashvars from string

How can I parse the flash vars from a string like this? <script type="text/javascript"> flashvars.added = "2010-07-18"; flashvars.name = "testing+purposes"; flashvars.user = "jhon+doe"; </script> I am using curl to get the string. ...

Oracle database not opening files with '#' character in them

For some reason, the files in the database won't open if they have the # character in them... One thing i noticed was in the file name, the link doesn't have %20 for the space characters after the # sign, but even when i replace the rest of the number characters with the %20 character, the link still doesn't work.. Any ideas why it cou...

Standard URL Normalization - Java

Hi, I would like to ask if there's any Java package or library that have the standard URL normalization? 5 Components of URL Representation http://www[dot]example[dot]com:8040/folder/exist?name=sky#head scheme: http authority: www.example.com:8040 path: /folder/exist query: ?name=sky fragment: #head The 3 types of standard URL n...

which domain to use and which to forward.. SEO reasons. discuss!

Hey guys, I am developing a site for a client and they currently own two domains. howafarms.com and grassfedbeeffl.net The current site has howafarms.com traffic forward straight to grassfedbeeffl.net. My question is.. which one should I use as the main url and which should I forward. Normal logic tells me howafarms.com should be...

apache rewrite url

Hi, I am trying to rewrite url and it fails. May I know what is wrong? can someone please enlighten me? I placed the code in .htaccess. I have enabled rewrite_module too. thanks. RewriteEngine On RewriteRule /place/^([a-zA-Z0-9])$ /placelink.php?lid=$1 For example: domain.com/place/xyz -> domain.com/placelink.php?id=xyz Update: I ha...

regex to match only .gov tlds

I am trying to write a regex to grab an entire url of any .gov or .edu web address to make it into a link. currently have /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ all in () so i can regurgitate it, for ANY URL...but I only want .gov or .edu ones. thanks in advance. ...