TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Mateen B.
Junior Developer in Private software house
Tutor Satisfaction Guarantee
Web Development
TutorMe
Question:

Explain the purpose of each of the HTTP request types when used with a RESTful web service.?

Mateen B.
Answer:

The purpose of each of the HTTP request types, when used with a RESTful web service, is as follows: GET: Retrieves data from the server (should only retrieve data and should have no other effect). POST: Sends data to the server for a new entity. It is often used when uploading a file or submitting a completed web form. PUT: Similar to POST, but used to replace an existing entity. PATCH: Similar to PUT, but used to update only certain fields within an existing entity. DELETE: Removes data from the server. TRACE: Provides a means to test what a machine along the network path receives when a request is made. As such, it simply returns what was sent. OPTIONS: Allows a client to request information about the request methods supported by a service. The relevant response header is Allow and it simply lists the supported methods. (It can also be used to request information about the request methods supported by the server where the service resides by using a * wildcard in the URI.) HEAD: Same as the GET method for a resource, but returns only the response headers (i.e., with no entity-body). CONNECT: Primarily used to establish a network connection to a resource (usually via some proxy that can be requested to forward an HTTP request to TCP and maintain the connection). Once established, the response sends a 200 status code and a “Connection Established” message.

HTML Programming
TutorMe
Question:

What is doctype? Why do u need it?

Mateen B.
Answer:

Doctype is an instruction to the browser to inform about the version of html document and how browser should render it. It ensures how element should be displayed on the page by most of the browser. And it also makes browser's life easier. otherwise, browser will guess and will go to quirks mode. Moreover, doctype is required to validate markup.

C++ Programming
TutorMe
Question:

What is the role of protected access specifier?

Mateen B.
Answer:

If a class member is protected then it is accessible in the inherited class. However, outside both the private and protected members are not accessible.

Send a message explaining your
needs and Mateen will reply soon.
Contact Mateen
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.