Post and get methods
Upcoming SlideShare
Loading in...5

Post and get methods

Post and get methods



Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds


Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Post and get methods Post and get methods Presentation Transcript

  • Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • Typing Speed Week Target Achieved 1 40 23 2 40 27 3 40 28
  • Jobs Applied Week Company 1 2 3 Designation Applied Date Current Status Intel info group System Engineer 16-9-2013 Short listed Alcatel-lucent 10-9-2013 Waiting Software Engineer
  • Muhammed Noufal V T muhammednoufalvt@gmail.c om lvt med-noufal 9744003056
  • Request-Response Cycle request Web Browser URL HTML, images, files response Web Server • When enter an address (URL) into the address bar of a web browser or click on a link, we generate a request for a file • The request is routed to a Web server, which sends back a
  • Get Method • Send parameters in the URL http://localhost:8081/fstpro/sec.jsp?na me=sonia • sec.jsp <%session.setAttribute("name",request.getP arameter("name")); session.setAttribute("age",request.getParam eter("age")); session.setAttribute("sex",request.getParam eter("sex"));%>
  • HTML Forms • Send parameters via forms <FORM ACTION="printname.jsp" METHOD="get"> <INPUT TYPE="text" NAME="firstname" SIZE=40> <INPUT TYPE="submit" value="Print Name"> </FORM> • Access these with the request object <% String name = request.getParameter("firstname"); ... %>
  • Post Method • Post attaches parameter values to request • A POST on the other hand will (typically) send the information through a socket back to the webserver and it won't show up in the URL bar. • You can send much more information to the server this way - and it's not restricted to textual data either.
  • Get & Post • Get puts parameters and values in the URL page.jsp?param1=value1&param2=value2&... – Send with a link or in a form with method="get" • Post attaches parameters to request – Send in a form with method="post“ GET POST • Parameters encoded in URL request • data limit URL length no limit • Bookmarks yes no attached to
  • Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550