File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • 0
  • 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 ]
 
Matteo Di Furia
Ranch Hand
Posts: 102
  • 0
  • 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.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic