473,378 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

GET URLs and forms

A simple question I could not find the answer to in the RFCs and elsewhere:

Is sending empty elements in a URL OK?

example: <URL>?foo=&

It seems to me that it must be, since default values of text fields and
other form elements will be empty, but just checking with the experts.

Could someone point me to the exact place in an official document where
this is covered?

Jul 20 '05 #1
1 1860
"Henrik S. Hansen" wrote:
A simple question I could not find the answer to in the RFCs and elsewhere:

Is sending empty elements in a URL OK?

example: <URL>?foo=&

It seems to me that it must be, since default values of text fields and
other form elements will be empty, but just checking with the experts.

Could someone point me to the exact place in an official document where
this is covered?


This is perfectly valid, see
http://www.w3.org/TR/html401/interac...html#h-17.13.2 for details on what
gets submitted. Note however that the specification allows the suppression of
undefined name/value pairs:

"If a control doesn't have a current value when the form is submitted, user
agents are not required to treat it as a successful control."

All of this applies to the way the URL is constructed when submitting forms,
there is nothing in the HTTP URL specification that would disallow something
like

http://www.example.com/?foo=&&&&&&&&====

either.

--
Klaus Johannes Rusch
Kl********@atmedia.net
http://www.atmedia.net/KlausRusch/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Howard Brazee | last post by:
I would like to click on a URL of a html document that will open several URLs at once for me. Does someone have an example of a html document that will do this?
1
by: DM | last post by:
I'm working on a site with more than 1700 HTML files. We'll be moving files around on this site a lot because we're reorganizing it. I'm thinking of writing a script that will convert all URLs in...
7
by: AES | last post by:
Encountered a URL containing a comma the other day -- the first time I've ever noticed that, so far as I can recall. It worked fine, however, and I gather commas are legal in URLs. Out of...
0
by: mqsash | last post by:
Hi, I have a simple C# assembly ( .dll ) which I deployed through an HTML.The complete assembly is as simple as this using System; using System.Windows.Forms; namespace testAssemblyNS {...
14
by: Arsen V. | last post by:
Hello, How does an application like the Web Application Stress tool work? How does it issue requests so fast without being blocked by slow executing ones? What technique can I use to create an...
0
by: Alexandre Soares | last post by:
Hi, I've found some code to create search engine safe urls. A filter added to the Response object parse all urls in the output html and an HttpModule takes the incoming url, parse it back to...
19
by: Blair P. Houghton | last post by:
I'm just learning Python, so bear with. I was messing around with the webbrowser module and decided it was pretty cool to have the browser open a URL from within a python script, so I wrote a...
6
by: Jason | last post by:
I have a sticky problem relating to my 'join' registration form inside our authenticatin system... We have just signed up for salesforce.com and I need to somehow integrate the canned...
3
by: WebCM | last post by:
How to apply nice URL-s into CMS? 1. Should we use nice urls for every page? 2. Do we need to put a FULL path into <a href="">? 3. What is faster and better? a) 10 rules in .htaccess...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.