Skip to main content
replaced http://webmasters.stackexchange.com/ with https://webmasters.stackexchange.com/
Source Link

I am aware that one method to provide user data to web application is to use query strings. For example http://www.example.com/get-page.php?home=aaa.html would set variable home value to aaa.html and this is used in script get-page.php. Obviously, one could write anything instead of aaa.html and it is up to web application developer to check the input. According to thisthis thread some web servers read the filename part of the URL and direct the request to some internal function. However, both methods use query strings. Are there any other methods besides query strings which allow user to provide random data to web application in URL?

I am aware that one method to provide user data to web application is to use query strings. For example http://www.example.com/get-page.php?home=aaa.html would set variable home value to aaa.html and this is used in script get-page.php. Obviously, one could write anything instead of aaa.html and it is up to web application developer to check the input. According to this thread some web servers read the filename part of the URL and direct the request to some internal function. However, both methods use query strings. Are there any other methods besides query strings which allow user to provide random data to web application in URL?

I am aware that one method to provide user data to web application is to use query strings. For example http://www.example.com/get-page.php?home=aaa.html would set variable home value to aaa.html and this is used in script get-page.php. Obviously, one could write anything instead of aaa.html and it is up to web application developer to check the input. According to this thread some web servers read the filename part of the URL and direct the request to some internal function. However, both methods use query strings. Are there any other methods besides query strings which allow user to provide random data to web application in URL?

Source Link
Martin
  • 289
  • 1
  • 8

Methods to provide user data to web application in URL?

I am aware that one method to provide user data to web application is to use query strings. For example http://www.example.com/get-page.php?home=aaa.html would set variable home value to aaa.html and this is used in script get-page.php. Obviously, one could write anything instead of aaa.html and it is up to web application developer to check the input. According to this thread some web servers read the filename part of the URL and direct the request to some internal function. However, both methods use query strings. Are there any other methods besides query strings which allow user to provide random data to web application in URL?