-
darin authored
WebFoundation part of implementation of multipart forms posting. * ProtocolHandlers.subproj/WebSimpleHTTPProtocolHandler.m: (-[WebSimpleHTTPProtocolHandler _addRequestMessageBody:]): * ProtocolHandlers.subproj/WebCFNetworkHTTPProtocolHandler.m: (-[WebCFNetworkHTTPProtocolHandler addRequestMessageBody:]): Remove obsolete support for non-NSData form data. Use the contentType in the request, if present. * ProtocolHandlers.subproj/WebHTTPResourceRequest.h: Add contentType and setContentType methods; convenience for setting the Content-Type header. * ProtocolHandlers.subproj/WebHTTPResourceRequest.m: (-[WebResourceRequest _headerForKey:]): Added. (-[WebResourceRequest userAgent]): Use _headerForKey. (-[WebResourceRequest referrer]): Ditto. (-[WebResourceRequest contentType]): Added. Use _headerForKey. (-[WebResourceRequest setContentType:]): Added. * ProtocolHandlers.subproj/WebHTTPProtocolHandler.h: Remove requestData. * ProtocolHandlers.subproj/WebHTTPProtocolHandler.m: Ditto. WebCore: WebCore part of implementation of multipart forms posting. * kwq/WebCoreBridge.h: Add a contentType parameter to the bridge's [postWithURL:referrer:data:] method. * kwq/KWQKHTMLPartImpl.mm: (KWQKHTMLPartImpl::submitForm): Extract the content type from the args, and pass it along to the bridge. WebKit: WebKit part of implementation of multipart forms posting. * WebCoreSupport.subproj/WebBridge.m: (-[WebBridge postWithURL:referrer:data:contentType:]): Add a contentType parameter to match change in WebCore API. Put the contentType value into the request. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fde25760