Helpful Information
 
 
Category: Server side development
Funky urls with .asp? How's it possible?

Is it easy to formulate urls that look similar to this?

/products.asp?blah

Thanks,

Ash

No functionality really. Just purely cosmetic. I just want it to look fancy. :)

For your information, ? character is used to separate parameter string in URL. These parameters can be processed with scripting (both server- and clientside).

But of course, you're allowed to use parameter string to make your URL fancier, it doesn't affect on functionality in any way.

Can you give an example? Also, where would I need to place the files? I know nothing about .asp. :/

Ash

Originally posted by AshleyQuick
Can you give an example? Also, where would I need to place the files? I know nothing about .asp. :/

Ash

ASP is a server-side language from Microsoft, which is scripted with VBScript and JScript. To be able to use ASP, your server has to support ASP (Microsoft's PWS, IIS, Apache+additional package..etc).

You can search for tutorials about ASP and ASP.NET from various locations. If you need free webspace with ASP support, visit http://www.brinkster.com .

Tutorials & references I use in problematic cases :
http://www.w3schools.com
http://msdn.microsoft.com/scripting
http://www.google.com :D

Zvona is entirely correct...

for your server to process the ASP Pages, it needs to be able to support it.

Not that I would actually recommend this for cosmetic uses, but if you're really set on that - you can just use your HTML pages like this...

rules.htm?querystring=absolutely+fake+way+of+doing+this

It will make no difference in the funcionality of your pages... but to truly use the QueryString to your full advantage - you'll need to learn some server side language... (ASP, PHP, Perl, Java, etc.)

~Quack

I think all they want is just things on the end for look...

You can do it with any page...


http://www.codingforums.com/showthread.php?s=&threadid=305&shdhhf=sfdsff&shfhhff=485yhg (http://www.codingforums.com/showthread.php?s=&threadid=305&shdhhf=sfdsff&shfhhff=485yhg)

As you can see it will not effect the page...

You could do something like this to make your links look "cool" and complicated:

<a href="page.htm?data=<%=Request.ServerVariables("HTTP_COOKIE")%>>Click Here</a>


Of course make sure your server will parse the page for ASP coding in order for it to work.

Heck if I was going to append a useless querystring to a URL I would probably make it completely random... just to make it look more l33t! (LOL).

Actually one cool way to try and fool hackers (assuming you're using REAL querystrings) is to figure out your own way of encoding querystrings... ;)

Originally posted by whammy
Heck if I was going to append a useless querystring to a URL I would probably make it completely random... just to make it look more l33t! (LOL).

Actually one cool way to try and fool hackers (assuming you're using REAL querystrings) is to figure out your own way of encoding querystrings... ;)

You could do a simple 'encode' by just pushing each character up above the 128 ASCII table. It would be easy to someone to break if they knew thats what you were doing, but to the uninformed it looks nifty.










privacy (GDPR)