473,406 Members | 2,281 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,406 software developers and data experts.

examples of "post" and "get" methods of ASP

Hello,
I would like to know about the methods : post and get of ASP.
What is the difference between them.
Need some samples, and explanation, please.

Thanks :)
Jul 22 '05 #1
6 1865
CJM
www.w3schools.com
Jul 22 '05 #2
"Eitan" <no_spam_please@nospam_please.com> wrote:
Hello,
I would like to know about the methods : post and get of ASP.
What is the difference between them.
Need some samples, and explanation, please.


This is an HTTP issue, not ASP.

GET is a simple request for a document. All information is sent in the
URL, therefore you can't sent more than - umm - 1000 characters or so
in a GET request.

A POST request sends data in the body of the request, not in the URL.
The amount of data you can send this way is unlimited, you can send
entire files with the proper form syntax.

In ASP, data sent via a GET request is retrieved with the Request
object, data sent via a POST is retrieve with the Form object.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 22 '05 #3
Tim Slattery wrote:
"Eitan" <no_spam_please@nospam_please.com> wrote:
Hello,
I would like to know about the methods : post and get of ASP.
What is the difference between them.
Need some samples, and explanation, please.


This is an HTTP issue, not ASP.

GET is a simple request for a document. All information is sent in the
URL, therefore you can't sent more than - umm - 1000 characters or so
in a GET request.

A POST request sends data in the body of the request, not in the URL.
The amount of data you can send this way is unlimited, you can send
entire files with the proper form syntax.

In ASP, data sent via a GET request is retrieved with the Request
object, data sent via a POST is retrieve with the Form object.


You were right-on, upt to this point.
Data sent by GET is retrieved via the Request object's Querystring
collection.

submittedvalue=Request.Querystring("name_of_form_f ield")

Data sent by POST is retrieved by the Request object's Form collection:

submittedvalue=Request.Form("name_of_form_field")

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #4
Eitan wrote:
Hello,
I would like to know about the methods : post and get of ASP.
What is the difference between them.
Need some samples, and explanation, please.

Thanks :)


You cn find the ASP documentation here (as well as the rest of the
documentation for most MS development tools):
http://msdn.microsoft.com/library/de.../ref_vbom_.asp

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #5
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote:

You were right-on, upt to this point.
Data sent by GET is retrieved via the Request object's Querystring
collection. Data sent by POST is retrieved by the Request object's Form collection:


Thanks for the correction. I knew I should have looked that up instead
of doing it from memory!

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 22 '05 #6
Eitan wrote:
I would like to know about the methods : post and get of ASP.
What is the difference between them.
Need some samples, and explanation, please.


The W3C standard document for HTTP 1.1 is RFC 2616,
"Hypertext Transfer Protocol -- HTTP/1.1", viewable at
http://www.w3.org/Protocols/rfc2616/rfc2616.html

See in particular section 9, "Method Definitions",
http://www.w3.org/Protocols/rfc2616/...c9.html#sec9.3
wherein it is noted that GET should be both "safe" and "idempotent".

More explanation of the intricacies of HTTP are available
http://rest.blueoxen.net/cgi-bin/wiki.pl
Jul 22 '05 #7

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

Similar topics

5
by: Chris Stromberger | last post by:
When issuing updates in mysql (in the console window), mysql will tell you if any rows matched and how many rows were updated (see below). I know how to get number of rows udpated using MySQLdb,...
7
by: Rui Pestana | last post by:
Hello all, I want to use the POST method to submit the form and then grab the parameters in the asp file with request.form("parm"). The problem is that I am using the _search target to open...
1
by: Pete Mahoney | last post by:
Ok I use a textarea to store data input by the user, and then upon them clicking the submit button I store this data to a database. The problem is once the user inputs too much data (about 3...
12
by: Me | last post by:
Hi, I would like learn from people with experience in C++, which of the following styles of way to construct "get/set" member functions would be the best in terms of usability, speed, et cetera. ...
5
by: Duck Dodgers | last post by:
Here is my situation class base { }; class child1 { int data; }; class child2 {
2
by: Tom S | last post by:
I'm using ASP.NET with C# as my code behind and I figure out how to get the above process to work. I've found many examples online for using the 'method' member to "POST", but none for setting it...
12
by: Assaf | last post by:
Hi all, My client is using an online service provider that processes survey responses. After a user fills survey.aspx and presses the OK button, 2 things need to happen: 1. the data has to...
1
by: Jim Carlock | last post by:
Let's not argue about semantics. Let's talk about semasiology. Do specifications exist for using mixed case, upper case, lower case for the contents of the method employed? My own preferences...
3
by: Bsr | last post by:
What is the difference between for the following methods. "GET", "HEAD", "PUT" or "POST". Ex:my $req =HTTP::Request->new(GET =>$url1); Bhuvan.
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
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.