[GTK][EFL] HEAD requests changed to GET after 303 redirection
https://bugs.webkit.org/show_bug.cgi?id=110127

Patch by Youenn Fablet <youennf@gmail.com> on 2013-04-08
Reviewed by Martin Robinson.

Source/WebCore:

Made shouldRedirectAsGET always return false for HEAD requests.

* platform/network/soup/ResourceHandleSoup.cpp:
(WebCore::shouldRedirectAsGET):

LayoutTests:

Added tests checking HEAD redirection.
Redirected HEAD requests are expected to remain HEAD requests.
(http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-21#section-7.4)

* http/tests/xmlhttprequest/head-redirection-expected.txt: Added.
* http/tests/xmlhttprequest/head-redirection.html: Added.
* http/tests/xmlhttprequest/resources/get_method.php: Added.
* http/tests/xmlhttprequest/resources/redirect_methods.php: Added.
* platform/mac/http/tests/xmlhttprequest/head-redirection-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147914 268f45cc-cd09-0410-ab3c-d52691b4dbfc