Post and get methods

179 views
139 views

Published on

Post and get methods

Published in: Education, Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
179
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Post and get methods

  1. 1. 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
  2. 2. Typing Speed Week Target Achieved 1 40 23 2 40 27 3 40 28
  3. 3. 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
  4. 4. Muhammed Noufal V T muhammednoufalvt@gmail.c om www.facebook.com/vtnoufa lvt twitter.com/noufalurnappy in.linkedin.com/pub/muham med-noufal 9744003056
  5. 5. 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
  6. 6. 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"));%>
  7. 7. 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"); ... %>
  8. 8. 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.
  9. 9. 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
  10. 10. 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: info@baabtra.com NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550

×