Solved

Addresses with  ?  and  &

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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Suggested Solutions

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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 …

828 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