Solved

Addresses with  ?  and  &

Posted on 1998-11-19
1
156 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now