Solved

Addresses with  ?  and  &

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
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 …
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

21 Experts available now in Live!

Get 1:1 Help Now