1.Difference
between HTTP and HTTPS
2.Difference between GET and POST methods
1. 255 bytes length is fine, because some older browser may not support more than that.2. Opera supports ~4050 characters.3. IE 4.0+ supports exactly 2083 characters.4. Netscape 3 -> 4.78 support up to 8192 characters.5. There is no limit on the number of parameters on a URL, but only on the length.6. The number of characters will be significantly reduced if we have special characters like spaces that need to be URLEncoded (e.g. converted to the '%20').7. If we are closer to the length limit better use POST method instead of GET method.
-
S.No HTTP HTTPS 1 URL begins with “http://" in case of HTTPURL begins with “https://” in case of HTTPS.2 HTTP is unsecured HTTPS is secured. 3 HTTP uses port 80 for communication HTTPS uses port 443 for communication. 4 HTTP operates at Application Layer HTTPS operates at Transport Layer. 5 No encryption is there in HTTP HTTPS uses encryption. 6 No certificates required in HTTP certificates required in HTTPS. 7 Most internet forums will probably fall into this category. Because these are open discussion forums, secured access is generally not required HTTPS should be used in Banking Websites, Payment Gateway, Shopping Websites, Login Pages, Emails (Gmail offers HTTPS by default in Chrome browser) and Corporate Sector Websites. For example:PayPal: https://www.paypal.comGoogle AdSense: https://www.google.com/adsense/
2.Difference between GET and POST methods
-
S.No GET POST 1 Post Mechanism:
GET request is sent via URL.Post Mechanism:
Post request is sent via HTTP request body or we can say internally.2 Form Default Method:
GET request is the default method.Form Default Method:
We have to specify POST method within form tag like
3 Security:Security:4 Length:Length:5 Caching or Bookmarking:Caching or Bookmarking:6 SEO:SEO:7 Data Type:Data Type:8 Best Example:Best Example:9 HTTP Request Message Format:1 GET /path/file.html?SearchText=Interview_Question HTTP/1.02 From: umarali1981@gmail.com3 User-Agent: HTTPTool/1.04 [blank line here]HTTP Request Message Format:1 POST /path/script.cgi HTTP/1.02 From: umarali1981@gmail.com3 User-Agent: HTTPTool/1.04 Content-Type: application/x-www-form-urlencoded5 Content-Length: 867 Code=132
Some
comments on the limit on QueryString / GET / URL parameters Length:
1. 255 bytes length is fine, because some older browser may not support more than that.2. Opera supports ~4050 characters.3. IE 4.0+ supports exactly 2083 characters.4. Netscape 3 -> 4.78 support up to 8192 characters.5. There is no limit on the number of parameters on a URL, but only on the length.6. The number of characters will be significantly reduced if we have special characters like spaces that need to be URLEncoded (e.g. converted to the '%20').7. If we are closer to the length limit better use POST method instead of GET method.