This week's book giveaway is in the Android forum.
We're giving away four copies of Learning Java by Building Android Games and have Jean-Marcel Belmont on-line!
See this thread for details.
Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

[HFSJ 2nd Edition] Questions related to chapter1/2  RSS feed

 
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

Atlast I have started reading the HFSJ. I have gone through the chapter 1 and 2 and i have some doubts.

Below is the snap of Chapter1, Page #14, Here the author is discussing the limitations of HTTP GET method.

The total amount of characters in a GET is really limited (depending on the server). If the user types, say, a long passage into a �search� input box, the GET might not work.

The data you send with the GET is appended to the URL up in the browser bar, so whatever you send is exposed. Better not put a password or some other sensitive data as part of a GET!

Because of number two above, the user can�t bookmark a form submission if you use POST instead of GET. Depending on your app, you may or may not want users to be able to bookmark the resulting request from a form submission.


1)

Because of number two above, the user can�t bookmark a form submission if you use POST instead of GET. Depending on your app, you may or may not want users to be able to bookmark the resulting request from a form submission.

[Chapter1, page # 14] -- What does this statement mean? Does it mean we can't bookmark the pages, if we have used HTTP POST method?

2) From the chapter 2 I come to know that if we want to develop a static website than Apache HTTP Web server application is enough no need of servlet container like tomcat. Then my question is now a days almost all the websites are dynamic then what is the use of Apache HTTP Web Application Server.

[ November 13, 2008: Message edited by: Vishal Pandya ]

[ November 13, 2008: Message edited by: Vishal Pandya ]
[ November 13, 2008: Message edited by: Vishal Pandya ]
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To answer question #2, a vast number of web sites are made with PHP, which you can add to Apache Server with a specific mod (modPHP, if I'm correct).

As for question #1, I didn't understand what you want to know. I'd need to know what's the "number two above" you quote. I'm pretty sure you can bookmark a page which is the result of an form submission, but the result could be not identical to the one you bookmarked, that's true.
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe what it's saying is that since with a POST as opposed to a GET, any parameters are NOT appended to the URL, they are part of the body (payload). A bookmark of a POST submission's results only includes the URL, and none of the submitted form data.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Matteo Di Furia:
To answer question #2, a vast number of web sites are made with PHP, which you can add to Apache Server with a specific mod (modPHP, if I'm correct).

As for question #1, I didn't understand what you want to know. I'd need to know what's the "number two above" you quote. I'm pretty sure you can bookmark a page which is the result of an form submission, but the result could be not identical to the one you bookmarked, that's true.


I have provided the requested information by editing the original question.
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Bosun Bello:
I believe what it's saying is that since with a POST as opposed to a GET, any parameters are NOT appended to the URL, they are part of the body (payload). A bookmark of a POST submission's results only includes the URL, and none of the submitted form data.


Thanks Bosun. I got it now.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!