• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Get vs Post

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Get vs Post

    Ive just been completely stumped by a question a permie has asked me (please bear with me - I'm primarily a SQL dev).

    I have a page that redirects to another page passing a postcode on the query string. Pretty standard stuff but he asked me why I'm doing a get instead of a post. And I couldn't really answer him.

    This isn't sensitive data - is there any reason to use a post over a get in this scenario? Or for that matter a get over a post? I should imagine a post involves squirting more markup over the wire but I have an all encompassing form in the master page anyway so I can't really use that argument.

    I'm guessing that in this instance it doesn't matter and it is just a spurious question from a permie.

    #2
    Google's quite a handy tool. As an SQL dev perhaps you don't know about it?

    HTTP Methods GET vs POST

    Comment


      #3
      Originally posted by Platypus View Post
      Google's quite a handy tool. As an SQL dev perhaps you don't know about it?

      HTTP Methods GET vs POST
      Thanks. I think....

      Comment


        #4
        If the page is using the postcode to make a different page for each postcode then it should by right have a unique URL with the postcode in it. So a Get.

        Comment


          #5
          Originally posted by minestrone View Post
          If the page is using the postcode to make a different page for each postcode then it should by right have a unique URL with the postcode in it. So a Get.
          That's the answer I needed earlier! It would have shut the permie up...

          Comment


            #6
            Originally posted by Gittins Gal View Post

            I'm guessing that in this instance it doesn't matter and it is just a spurious question from a permie.
            Possibly but sounds like you proved him right
            'CUK forum personality of 2011 - Winner - Yes really!!!!

            Comment


              #7
              One of the advantages of using the GET method is you can bookmark the URL and search engines will crawl your page and index it. With a post this cannot happen.

              Comment


                #8
                Originally posted by Unix View Post
                One of the advantages of using the GET method is you can bookmark the URL and search engines will crawl your page and index it. With a post this cannot happen.
                What postcode does a search bot use?
                Will work inside IR35. Or for food.

                Comment


                  #9
                  Originally posted by VectraMan View Post
                  What postcode does a search bot use?
                  Whichever one is on the link that they crawl.

                  Comment


                    #10
                    Originally posted by Bunk View Post
                    Whichever one is on the link that they crawl.

                    And in this instance that URL does not exist. I mean Google has intelligence but not so much that it can input post code and crawl a URL.

                    Anyway, POST makes sense if the data is quite huge since QS has a limit. Advantage of GET is that the URL can be directly loaded without the need to re post the data.
                    Vote Corbyn ! Save this country !

                    Comment

                    Working...
                    X