PrepAway - Latest Free Exam Questions & Answers

Which header and request type should you use in the application?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows
Communication Foundation (WCF) Data Services service. You discover that when an application
submits a PUT or DELETE request to the Data Services service, it receives an error. You need to
ensure that the application can access the service. Which header and request type should you use in
the application?

PrepAway - Latest Free Exam Questions & Answers

A.
an X-HTTP-Method header as part of a POST request

B.
an X-HTTP-Method header as part of a GET request

C.
an HTTP ContentType header as part of a POST request

D.
an HTTP ContentType header as part of a GET request

Explanation:
The X-HTTP-Method header can be added to a POST request that signals that the server MUST
process the request not as a POST, but as if the HTTP verb specified as the value of the header was
used as the method on the HTTP request’s request line, as specified in [RFC2616] section 5.1. This
technique is often referred to as “verb tunneling”. This header is only valid when on HTTP POST
requests.
X-HTTPMethod
(http://msdn.microsoft.com/en-us/library/dd541471(v=prot.10).aspx)


Leave a Reply