How web server knows that the requests is get or post ?

pranav Goswami

pranav Goswami

@pranav-goswami-mp95na Oct 20, 2024
when browser send request to the server, how server come to know that requst is get or post?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • [Prototype]

    [Prototype]

    @prototype-G9Gn5k Jan 24, 2013

    <form action="inline-mod/post/switch" method="post"
    Gives you the clue?
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Feb 16, 2013

    [Prototype]
    <form action="inline-mod/post/switch" method="post"
    Gives you the clue?
    Hey what does this action attribute value indicate, I have never seen this before?
  • [Prototype]

    [Prototype]

    @prototype-G9Gn5k Feb 16, 2013

    goyal420
    Hey what does this action attribute value indicate, I have never seen this before?
    AFAIK, all forms that submits data has that attribute. It just specifies the location where the user data is to be sent for further processing. I took that snippet from CE itself.

    A simple example would be,

    <form action="login.php" method="post">
    This is send the data of login form to login.php.

    Is this what you're asking?
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Feb 17, 2013

    [Prototype]
    AFAIK, all forms that submits data has that attribute. It just specifies the location where the user data is to be sent for further processing. I took that snippet from CE itself.

    A simple example would be,

    <form action="login.php" method="post">
    This is send the data of login form to login.php.

    Is this what you're asking?
    I know what does action attribute means, I want to know about this value

    1. inline-mod/post/switch
  • [Prototype]

    [Prototype]

    @prototype-G9Gn5k Feb 17, 2013

    goyal420
    I know what does action attribute means, I want to know about this value

    1. inline-mod/post/switch
    Took that from CE, actually from this same page itself. 😁

    Its certainly the url to some module specific to the CMS of this forum. Not a feature of html. Sorry, never thought it would create confusion like that. I now see where you're coming from.
  • Anand Tamariya

    Anand Tamariya

    @anand-tamariya-DnfjEX Mar 9, 2013

    pranav Goswami
    when browser send request to the server, how server come to know that requst is get or post?
    GET or POST is defined as part of HTTP request header. You should read about TCP/IP programming if you need more details.