Solved

Addresses with  ?  and  &

Posted on 1998-11-19
1
162 Views
Last Modified: 2013-12-25
I see addresses such as:
http://www.abc.com/db.pl?db=default&uid=default
They are calling a perl script, but what do the ?  and  &  signify?  How does the perl script know what to do with them?
0
Comment
Question by:Lee5
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
rajgn earned 50 total points
ID: 1829689
The string(in this case, 'db=default&uid=default') after ? in a URL is called QUERYSTRING. This is one of the methods(called GET method, other is POST) of passing informatiion from your browser to the server. In a CGI script you can collect this string in a variable named QUERY_STRING(or may be QUERYSTRING). An & in this string seperates various key-value pairs(in this case there are two key-value pairs). Once you read this in your CGI you can parse the string and respond accordingly. Generally this method is used when you've to send small amount of information. If the data to send is more POST method is used.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question