Page 1 of 1

URL Parser

Posted: Tue Nov 29, 2005 4:18 pm
by PnHoPob
I'm away from a php-coding computer right now, but as soon as I get home, I'm gonna try to do this.
I'm trying to do something similar to pastebin, however I do not want to upload every file to my server and waste space. Instead, since this will be used mostly on forums, I thought I'd make a potentially really, really long URL.

This is what I'm thinking:
viewforum.php?f=1&t=%22uploadedstuffhere%22

To check it out, I tried to visit [url=viewforum.php?f=1&t=%22Lorem%20ipsum%20 ... tellus.%22]this[/url] site (with 5 paragraphs of Lipsum saved to t) and it loads.

So these are my questions:
- Is there a size limit to URLs?
- Can URLs contains slash characters like \r and \n?
- How can URLs contain % signs (like %22) and not see that as a " ?

Posted: Tue Nov 29, 2005 4:32 pm
by Jenk
In a word, no.

It cannot be done for a few reasons, two of which are:

1. URL is limited to 255 characters.

2. URL encoding mismatches.