I'm creating an XML document and I want to store URLs inside the a node like so:
<ns:url>http://example.com</ns:ulr>
My question is, do I need to encode/escape the URL in anyway?
If I do the will the .Net XmlDocument object handle this for me?
...
I have the following string:
"Look on http://www.google.com".
I need to convert it to:
"Look on http://www.google.com"
The original string can have more than 1 URL string.
How do I do this in php?
Thanks
...
Hello,
which is the maximum length of an URL? does it depend on the browser? its max length is specified by a RFC?
Thanks.
Duplicate of What is the maximum length of an url?
...
I want to write URL that work regardless whether the base URL is either of:
http://example.com/myfolder/
http://example.com/
E.g.
<a href="other.html">Other</a>
Should go to
http://example.com/myfolder/other.html
http://example.com/other.html
respectively,
But instead in both cases they go to:
http://exampl...
Heyall,
I am designing a website using CSS Files a lot, but I have several occurrences of background images, images for bullets in lists and I will probably find another need for the css url() function.
But, in cake, all URL should be handled by the Route::url() function, in several ways, being most common the $html->url()
But my prob...
Hi all
Although I know I could use some hugeass regex such as the one posted here I'm wondering if there is some tweaky as hell way to do this either with a standard module or perhaps some third-party add-on?
Simple question, but nothing jumped out on Google (or Stackoverflow).
Look forward to seeing how y'all do this!
Jamie
...
If I had a URL such as
http://localhost/search.php?year=2008
How would I write a JavaScript function to grab the variable year and see if it contains anything?
I know it can be done with location.search but I can’t figure out how it grabs parameters.
thanks
...
I need to crawl a web board, which uses ajax for dynamic update/hide/show of comments without reloading the corresponding post.
I am blocked by this comment area.
In Ajax.request, url is specified with a path without host name like this :
new Ajax(**'/bbs/comment_db/load.php'**, {
update : $('comment_result'),
evalScript...
I want my intent to be launched when the user goes to a certain url: for example, the android market does this with http://market.android.com/ urls. so does youtube. I want mine to do that too. If anybody could explain this, thank you very much. Isaac Waller
...
Hello,
I was wondering what is the intent for downloading URLs? In the browser, it will download stuff with a little notification icon. I was wondering if I can use that intent (and what it is). Thanks, Isaac Waller
...
I have looked all of the place for this and I can't seem to get a complete answer for this. So if the answer does already exist on stackoverflow then I apologize in advance.
I want a unique and random ID so that users in my website can't guess the next number and just hop to someone else's information. I plan to stick to a incrementing ...
We have a custom IHttpHandler that is responsible for file downloads. The handler is mapped to URL /downloadfile.rem
The browser redirects user to URL formatted like:
/downloadfile.rem/[fileID]/[mimeType]/[fileName].[extension]
example:
/downloadfile.rem/54923876129874545456621/text$plain/data.txt
Our handler gets the supplied informa...
I'm currently using an htaccess file to redirect users from
detail.asp?CategoryID=XX&SubCategoryID=XX&ProductID=XX
to
catid-XX-subcatid-xx-productid-xx
but I now need to check they've arrived at the correct page. I'm doing this by checking that the query string values are correct. However I'd rather check that the user arrived at
"...
This is probably very simple, but I simply cannot find the answer myself :(
Basicaly, what I want is, given this string:
"http://www.google.com/search?hl=en&q=c# objects"
I want this output:
http://www.google.com/search?hl=en&q=c%23+objects
I'm sure there's some helper class somewhere buried in the Framework that takes care...
I'm looking to create a URL string like the one SO uses for the links to the questions. I am not looking at rewriting the url (mod_rewrite). I am looking at generating the link on the page.
Example: The question name is:
Is it better to use ob_get_contents() or $text .= ‘test’;
The URL ends up being:
http://stackoverflow.com/questio...
Hello all,
I am allowing users to download a file from another server just by giving them the link.
However, the files are always named "file.zip" when users try to download it. I was hoping I could use maybe JavaScript to rename the file for them to something more appropriate.
How can I do this? Is this possible?
Would appreciate a...
In FireFox3 when I go to URL's such as:
http://download.microsoft.com/download/4/A/A/4AA524C6-239D-47FF-860B-5B397199CBF8/windows-kb890830-v2.7.exe
I get a 404 error for the URL locally on my XAMPP installation I use for local development.
It has to do with the .exe I think but I can't figure out why.
Whats the problem?
Object not f...
I am programming a small script using PHP and regular expressions
The aim of this script is to extract all links in a page and convert these links to absolute- when it is relative -
I figured how does relative links works but their are some questions also
lets say we have this page http://www.example.com/xxx1/xxx2/xxx3.html
if this pag...
Hi,
Is it possible to change the HostName for a request in ASP.Net?
We need this for rewriting all requests to abc.xyz.com to abc.xyz.com/sites/abc (we are running Sharepoint).
I understand this is possible with ISAPI. We are running IIS7.
Kind regards,
...
I have a form that is accepting URLs from users in PHP.
What characters should I allow or disallow? Currently I use
$input= preg_replace("/[^a-zA-Z0-9-\?\:#.()\,\/\&\'\\"]/", "", $string);
$input=substr($input,0,255);
So, it's trimmed to 255 chars and only can include letters, numbers, and ? - _ : # ( ) , & ' " /
Anything I should b...