17 Feb 2014

HTTP Response Headers-Part I (Headers Only)


Accept

This header specifies the MIME types that the browser or other clients can handle.

Accept-Charset

This header indicates the character sets (e.g., ISO-8859-1) the browser can use.

Accept-Encoding

This header designates the types of encodings that the client knows how to handle.
  • public
    Document is cacheable, even if normal rules (e.g., for password-protected pages) indicate that it shouldn't be.
  • private: 
     Document is for a single user and can only be stored in private (nonshared) caches.
  • no-cache: 
    Document should never be cached (i.e., used to satisfy a later request). The server can also specify "no-cache="header1,header2,...,headerN"" to stipulate the headers that should be omitted if a cached response is later used. 
  • No store:
     Document should never be cached and should not even be stored in a temporary location on disk. This header is intended to prevent inadvertent copies of sensitive information.

Connection

A value of close for this response header instructs the browser not to use persistent HTTP connections.

Content-Disposition

The Content-Disposition header lets you request that the browser ask the user to save the response to disk in a file of the given name. This header is particularly useful when you send the client non-HTML responses (e.g., Excel spreadsheets, JPEG images).

Content-Encoding

This header indicates the way in which the page was encoded during transmission. The browser should reverse the encoding before deciding what to do with the document.

Content-Language

The Content-Language header signifies the language in which the document is written.

 

Content-Length

This header indicates the number of bytes in the response. This information is needed only if the browser is using a persistent (keep-alive) HTTP connection. 

 

Content-Type

The Content-Type header gives the MIME (Multipurpose Internet Mail Extension) type of the response document. Setting this header is so common that there is a special method in HttpServletResponse for it: setContentType. MIME types are of the form maintype/subtype for officially registered types and of the form maintype/x-subtype for unregistered types.

Expires

This header stipulates the time at which the content should be considered out-of-date and thus no longer be cached. A servlet might use this header for a document that changes relatively frequently, to prevent the browser from displaying a stale cached value. 

Last-Modified

This very useful header indicates when the document was last changed. The client can then cache the document and supply a date by an If-Modified-Since request header in later requests.

Location

This header, which should be included with all responses that have a status code in the 300s, notifies the browser of the document address. The browser automatically reconnects to this location and retrieves the new document. This header is usually set indirectly, along with a 302 status code, by the sendRedirect method of HttpServletResponse.

 

 Pragma

Supplying this header with a value of no-cache instructs HTTP 1.0 clients not to cache the document. However, support for this header was inconsistent with HTTP 1.0 browsers.

Refresh

This header indicates how soon (in seconds) the browser should ask for an updated page.

Retry-After

This header can be used in conjunction with a 503 (Service Unavailable) response to tell the client how soon it can repeat its request.

Set-Cookie

The Set-Cookie header specifies a cookie associated with the page. Each cookie requires a separate Set-Cookie header. Servlets should not use response.setHeader("Set-Cookie", ...) but instead should use the special-purpose addCookie method of HttpServletResponse.

WWW-Authenticate

This header is always included with a 401 (Unauthorized) status code. It tells the browser what authorization type and realm the client should supply in its Authorization header.

Various Google APIs

  1.  Ad Exchange Buyer API
  2. Ad Exchange Seller API
  3. Admin SDK
  4. AdSense Host API
  5. AdSense Management API
  6. Analytics API
  7. Audit API
  8. BigQuery API
  9. Blogger API v3
  10. Books API
  11. CalDAV API
  12. Calendar API
  13. Chrome Web Store API
  14. Contacts API
  15. Custom Search API
  16. DFA Reporting API
  17. Directions API
  18. Distance Matrix API
  19. DoubleClick Search API
  20. Drive API
  21. Drive SDK
  22. Elevation API
  23. Enterprise License Manager API
  24. Freebase API
  25. Fusion Tables API
  26. Geocoding API
  27. Google Affiliate Network API
  28. Google Apps Marketplace API
  29. Google Apps Marketplace SDK
  30. Google Apps Reseller API
  31. Google Civic Information API
  32. Google Cloud Datastore API
  33. Google Cloud Messaging for Android
  34. Google Cloud Messaging for Chrome
  35. Google Cloud SQL
  36. Google Cloud SQL API
  37. Google Cloud Storage
  38. Google Cloud Storage JSON API
  39. Google Compute Engine
  40. Google Contacts CardDAV API
  41. Google Maps Android API v2
  42. Google Maps API v3
  43. Google Maps Coordinate API
  44. Google Maps Engine API
  45. Google Maps Geolocation API
  46. Google Maps SDK for iOS
  47. Google Maps Tracks API
  48. Google Mirror API
  49. Google Picker API
  50. Google Play Android Developer API
  51. Google Play App State
  52. Google Play Game Management
  53. Google Play Game Services
  54. Google Spectrum Database API
  55. Google+ API
  56. Google+ Domains API
  57. Google+ Hangouts API
  58. Groups Migration API
  59. Groups Settings API
  60. Identity Toolkit API
  61. Orkut REST API
  62. PageSpeed Insights API
  63. Places API
  64. Prediction API
  65. QPX Express Airfare API
  66. Search API for Shopping
  67. Site Verification API
  68. Static Maps API
  69. Street View Image API
  70. Tasks API
  71. Time Zone API
  72. Translate API
  73. URL Shortener API
  74. Web Fonts Developer API
  75. YouTube Analytics API
  76. YouTube Data API v3

4 Feb 2014

Introduction to web hosting

Introduction to web hosting 

           The activity or business of providing storage space and access for websites is called web hosting .When you want to share your data among other internet users then you have to host your content in a server . 
        Ex:When you make a website and want other people to see it, you will need to publish it with a Web Hosting Service .
 

What is the need of web hosting

         When someone types in your web address, the Internet connects to the web server holding your website files and then transfers your website information back to their computer. From there they can surf and view the pages of your website. So one can say it is a platform to make your content to be viewed by other internet users. 

Prerequisites of web hosting

  • Content you want to publish or share (Ex. a website)
  • An own domain
  • A web server (owned or got on rent )
  • FTP client software
  • High bandwidth internet connection 

What are the features given by the host

  • Pre-Setup
  • Virtual Storage
  • Data Transfer Rate
  • Network Up time
  • Domain
  • Sub Domain
  • Website Builder
  • Control Penal
  • File Manager
  • Custom Error Messages
  • Customer Management System
  • E-Commerce 
  • Web Analysis
  • Custom Support
  • Email Accounts
  • Email Forwarding
  • Shared SSL( Secure Sockets Layer )
  • Raid Backup
  • Firewall

Web server available in web hosting

  1. ASP
  2. JSP
  3. PHP
  4. Python
  5. Ruby
  6. MySql
     

Things to be careful while selecting web host

  • Bandwidth
  • Name Server
  • Domain Name
  • Price 

How to configure

  1. Domain Registration :-

    First  Select a Domain by which you want to create your website's URL. Then register the domain with charges as per applicable on domain.
  2. Web Server Configuration:- 

    Now Purchase or Sign Up(Most in the Free one) in a Web Server or Web Hosting site for Web Hosting Service. Give your domain name in Domain Manager and upload your website pages like .html, .php, .aspx, etc through FTP or File Manager in Web Directory.
  3. Database Configuration :- 

    Go to Database Manager and Access the database through your given username and password. Then create a database which has same name which you have used while making the website. Then Make Tables and data inputs or simply paste the .sql file if database in mysql.
  4. Testing :- 

    Now Testing phase came. Here you have to check if the domain and database work properly with your website or not.For this you have to type your website url you have given when getting the domain. If it shows the proper output as you want then your website is hosted properly otherwise do the steps again.

Services given by Host

  • FTP                (for File Transfer from Server to local Directory)
  • SMTP            (for Email Account of Website..Simple Mail Transfer Protocol)
  • MySQL          (for Database Queries and Access Rights of Data)
  • SOAP             (for  creating XML information Set)
  

Comments

© 2013-2016 ITTechnocrates. All rights resevered. Developed by Bhavya Mehta