Question: GET vs POST method

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Question: GET vs POST method

    Can someone provide a simple explanation on the difference between the GET
    and POST methods? What are the adv/disadv of both and when should I use
    them?

    Thanks.


    VB Programmer Guest

  2. Similar Questions and Discussions

    1. Post method
      Hi there Someone know how to capture the vars and values from the POST method, such like a Matts' FormMail, i want to do somethink like that, and...
    2. GET or POST method??
      I wonder when we should use GET method, when we should use POST method? GET method only sends limited amount of data, and it will show the data as...
    3. using post method
      Hello All, I am trying to use the post method in perl to fill a form. The form is actually for sending an instant message to a cell phone, i would...
    4. ASP, FORMS, POST METHOD And Post with out form(???)
      Lets see if I can decribe, this... I have a form on an html page, that will call a remote site with a post method. Prior to running off to the...
    5. POST method and xls file
      Normally users compile a php page to introduce some informations, then these infomations are put-in in 10 different array and with POST method...
  3. #2

    Default Question: GET vs POST method

    Hi

    Get and Post are methods used to send data to the server:
    With the Get method, the browser appends the data onto
    the URL. With the Post method, the data is sent
    as "standard input."


    It's important for you to know which method you are
    using. The Get method is the default, so if you do not
    specify a method, the Get method will be used
    automatically.

    The Get method has several disadvantages:
    There is a limit on the number of characters which can be
    sent to the server, generally around 100 - 150
    characters.
    Your user will see the "messy codes" when the data is
    sent.

    The Bottom Line is With the Get method, your users will
    see the "messy codes" in the Location box when they
    submit a form. With the Post method, they won't


    Hope this gives an idea

    Ravikanth[MVP]

    >-----Original Message-----
    >Can someone provide a simple explanation on the
    difference between the GET
    >and POST methods? What are the adv/disadv of both and
    when should I use
    >them?
    >
    >Thanks.
    >
    >
    >.
    >
    Ravikanth[MVP] Guest

  4. #3

    Default Re: Question: GET vs POST method

    VB Programmer wrote:
    > Can someone provide a simple explanation on the difference between
    > the GET and POST methods? What are the adv/disadv of both and when
    > should I use them?
    >
    > Thanks.
    In addition to Ravikanth's posting:

    Use GET:
    - during development for debugging purposes (although in ASP.NET it's
    also easy to see what has been sent through POST.
    - if you want your visitors to be able to bookmark the submitted pages
    - if you want to refer to submitted pages using hyperlinks

    Use POST:
    - for forms with password fields
    - for large forms or forms with large text fields

    Please note that web forms in ASP.NET use POST by default. It can be
    changed into GET, but only for small forms. Web forms can post a lot
    of data, especially when ViewState is involved.

    --

    Jos Branders


    Jos Guest

  5. #4

    Default Re: Question: GET vs POST method

    GREAT response! Thanks.

    "Jos" <josnospambranders@fastmail.fm> wrote in message
    news:urxhA7LXDHA.1680@tk2msftngp13.phx.gbl...
    > VB Programmer wrote:
    > > Can someone provide a simple explanation on the difference between
    > > the GET and POST methods? What are the adv/disadv of both and when
    > > should I use them?
    > >
    > > Thanks.
    >
    > In addition to Ravikanth's posting:
    >
    > Use GET:
    > - during development for debugging purposes (although in ASP.NET it's
    > also easy to see what has been sent through POST.
    > - if you want your visitors to be able to bookmark the submitted pages
    > - if you want to refer to submitted pages using hyperlinks
    >
    > Use POST:
    > - for forms with password fields
    > - for large forms or forms with large text fields
    >
    > Please note that web forms in ASP.NET use POST by default. It can be
    > changed into GET, but only for small forms. Web forms can post a lot
    > of data, especially when ViewState is involved.
    >
    > --
    >
    > Jos Branders
    >
    >

    VB Programmer Guest

  6. #5

    Default Re: Question: GET vs POST method

    You should also use POST for all requests that result in changes on the
    server (such as updating the database). Clients will automatically resubmit
    GET forms but not POST forms if the user refreshes the page (or goes back to
    it in their history).

    Jerry

    "VB Programmer" <growNO-SPAM@go-intech.com> wrote in message
    news:%23VLQdgNXDHA.212@TK2MSFTNGP12.phx.gbl...
    > GREAT response! Thanks.
    >
    > "Jos" <josnospambranders@fastmail.fm> wrote in message
    > news:urxhA7LXDHA.1680@tk2msftngp13.phx.gbl...
    > > VB Programmer wrote:
    > > > Can someone provide a simple explanation on the difference between
    > > > the GET and POST methods? What are the adv/disadv of both and when
    > > > should I use them?
    > > >
    > > > Thanks.
    > >
    > > In addition to Ravikanth's posting:
    > >
    > > Use GET:
    > > - during development for debugging purposes (although in ASP.NET it's
    > > also easy to see what has been sent through POST.
    > > - if you want your visitors to be able to bookmark the submitted pages
    > > - if you want to refer to submitted pages using hyperlinks
    > >
    > > Use POST:
    > > - for forms with password fields
    > > - for large forms or forms with large text fields
    > >
    > > Please note that web forms in ASP.NET use POST by default. It can be
    > > changed into GET, but only for small forms. Web forms can post a lot
    > > of data, especially when ViewState is involved.
    > >
    > > --
    > >
    > > Jos Branders
    > >
    > >
    >
    >

    Jerry III Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139