Commit Graph

263 Commits

Author SHA1 Message Date
Hans Leidekker afd3685779 winhttp: Only turn POST requests into GET requests when redirecting. 2012-01-27 18:05:47 +01:00
Hans Leidekker 053d1731fe winhttp: Remove some dead assignments (clang). 2011-12-09 21:15:27 +01:00
Hans Leidekker 7d8730f8c5 winhttp: Resolve the server name only on the first request. 2011-11-25 16:22:02 +01:00
Marcus Meissner e410f3fc66 winhttp: Added missing LeaveCriticalSection (Coverity). 2011-11-24 17:17:11 +01:00
Hans Leidekker 2621e98d04 winhttp: Clean up properly in request_send. 2011-11-16 16:59:27 +01:00
Francois Gouget ea93b27c34 winhttp: Give a name to the critical sections. 2011-11-14 20:15:22 +01:00
Hans Leidekker 3c9d356bc4 winhttp: Convert string data to UTF-8 and add a corresponding content type header. 2011-11-14 13:10:18 +01:00
Hans Leidekker 5d64254986 winhttp: Use a separate function to set request parameters. 2011-11-09 15:57:27 +01:00
Hans Leidekker 82965248d1 winhttp: Fix sending data with synchronous requests. 2011-11-09 15:57:24 +01:00
Hans Leidekker d5a98e5d85 winhttp: Fix some memory leaks. 2011-09-05 17:17:20 +02:00
Hans Leidekker 82f7651005 winhttp: Properly test a boolean variant. 2011-09-05 17:17:07 +02:00
Hans Leidekker 1d0397d151 winhttp: Support setting the WinHttpRequestOption_EnableRedirects option. 2011-08-24 12:14:47 +02:00
Hans Leidekker cfe4c56624 winhttp: Verify parameter types in IWinHttpRequest::SetProxy. 2011-08-02 11:51:05 +02:00
Hans Leidekker 40bf74107f winhttp: Implement IWinHttpRequest::SetAutoLogonPolicy. 2011-08-02 11:51:05 +02:00
Hans Leidekker e5b8c497ef winhttp: Execute asynchronous requests in a separate thread. 2011-08-02 11:51:01 +02:00
Hans Leidekker 916e3c1cc4 winhttp: Protect access to the request object with a critical section. 2011-08-02 11:41:52 +02:00
Hans Leidekker 87487c14c7 winhttp: Store a copy of the proxy server name and bypass list. 2011-07-29 13:32:53 +02:00
Hans Leidekker 36014639ea winhttp: Factor out request initialization. 2011-07-29 13:32:49 +02:00
Hans Leidekker fb7fc894f0 winhttp: Set an appropriate error when the request is cancelled. 2011-07-29 13:32:45 +02:00
Hans Leidekker c54772c114 winhttp: Fix some valgrind warnings. 2011-07-29 13:32:41 +02:00
Hans Leidekker 7939090fde winhttp: Disable automatic authentication. 2011-07-28 11:31:34 +02:00
Hans Leidekker ae05ce459f winhttp: Don't send any data if the verb is GET. 2011-07-27 11:54:53 +02:00
Hans Leidekker 2295c63796 winhttp: Include the extra info part of the URL in the request. 2011-07-27 11:54:45 +02:00
Hans Leidekker 6191469bc2 winhttp: Add support for sending data with a request. 2011-07-26 10:24:14 +02:00
Hans Leidekker 114bc2b856 winhttp: Implement IWinHttpRequest::SetRequestHeader. 2011-07-26 10:24:10 +02:00
Hans Leidekker 2c8765e7fb winhttp: Implement IWinHttpRequest::GetResponseHeader. 2011-07-26 10:24:05 +02:00
Hans Leidekker 3638908039 winhttp: Add some parameter checks. 2011-07-26 10:23:59 +02:00
Hans Leidekker ca9ab005fc winhttp: Implement IWinHttpRequest::GetAllResponseHeaders. 2011-07-26 10:23:41 +02:00
Hans Leidekker 80d17a79ff winhttp: Set WINHTTP_FLAG_SECURE if the scheme is https. 2011-07-26 10:23:35 +02:00
Hans Leidekker 7227c29a09 winhttp: Add a default user agent header. 2011-07-26 10:23:31 +02:00
Hans Leidekker 050058c5bf winhttp: Add accept types to the request headers. 2011-07-26 10:23:26 +02:00
Hans Leidekker 9237479d22 winhttp: Implement IWinHttpRequest::SetProxy. 2011-07-26 10:23:20 +02:00
Hans Leidekker 4184590579 winhttp: Propagate errors from asynchronous requests. 2011-07-24 12:34:05 +02:00
Hans Leidekker 694d43a910 winhttp: Set last error if the server didn't return a valid response. 2011-07-24 12:33:59 +02:00
Hans Leidekker b218ed1a69 winhttp: Implement IWinHttpRequest::SetCredentials. 2011-07-24 12:33:54 +02:00
Hans Leidekker a25c865cb8 winhttp: Implement IWinHttpRequest::get_ResponseBody. 2011-07-24 12:33:49 +02:00
Hans Leidekker 73646d3529 winhttp: Use an offset instead of a pointer for the write position. 2011-07-24 12:33:39 +02:00
Hans Leidekker f4c2317adc winhttp: Implement IWinHttpRequest::Abort. 2011-07-21 15:36:39 +02:00
Hans Leidekker 52d134b364 winhttp: Implement IWinHttpRequest::get_ResponseText. 2011-07-21 15:36:39 +02:00
Hans Leidekker 39468db2d6 winhttp: Implement IWinHttpRequest::get_StatusText. 2011-07-21 15:36:39 +02:00
Hans Leidekker e11828d2d0 winhttp: Implement IWinHttpRequest::get_Status. 2011-07-21 15:36:39 +02:00
Hans Leidekker 5c79f82ae5 winhttp: Implement IWinHttpRequest::WaitForResponse. 2011-07-21 15:36:39 +02:00
Hans Leidekker d66a0b748b winhttp: Implement IWinHttpRequest::SetTimeouts. 2011-07-21 15:36:39 +02:00
Hans Leidekker 2e33485c6f winhttp: Implement IWinHttpRequest::Send. 2011-07-21 15:36:39 +02:00
Hans Leidekker 4aeec1b88d winhttp: Implement IWinHttpRequest::Open. 2011-07-21 15:36:38 +02:00
Hans Leidekker 0daac59a35 winhttp: Implement IDispatch for WinHttpRequest. 2011-07-19 14:04:58 +02:00
Hans Leidekker fd7538d38c winhttp: Add a stub implementation of IWinHttpRequest. 2011-07-08 17:34:48 +02:00
Hans Leidekker b7df063fde winhttp: Don't change the verb if the server response is HTTP_STATUS_REDIRECT_KEEP_VERB. 2011-06-01 15:16:44 +02:00
Karsten Elfenbein 5f12a6423c winhttp: Follow 307 temporary redirect. 2011-05-09 11:44:30 +02:00
André Hentschel 1bf001cf0b winhttp: Port numbers are unsigned. 2011-03-28 17:26:12 +02:00
Alexandre Julliard 93208196c8 winhttp: Make WinHttpQueryHeaders behave the same way for all query types.
Based on a patch by Mikko Rasa.
2010-08-20 16:08:58 +02:00
Hans Leidekker f4dff734d4 winhttp: Add support for basic authentication. 2010-04-22 18:11:42 +02:00
Hans Leidekker bcc4040dcf winhttp: Implement WINHTTP_QUERY_STATUS_TEXT. 2010-03-05 13:14:50 +01:00
Hans Leidekker b467efb5c8 winhttp: Add support for resolve timeouts. 2010-02-22 13:15:56 +01:00
Hans Leidekker e4471d5f80 winhttp: Store the context passed to WinHttpSendRequest. 2010-01-25 14:05:11 +01:00
Juan Lang a33c4bfd0b winhttp: Pass hostname to netconn_secure_connect. 2009-12-04 12:02:50 +01:00
Hans Leidekker 846cc2b157 winhttp: Implement WinHttpQueryHeaders(WINHTTP_QUERY_VERSION). 2009-10-29 13:51:20 +01:00
Hans Leidekker 39b1dbed7a winhttp: Accept empty headers parameter in WinHttpSendRequest. 2009-10-29 13:51:14 +01:00
Michael Stefaniuc 59be8e519f winhttp: 'http1_1' is already defined in the private header. 2009-10-02 11:49:27 +02:00
Gerald Pfeifer 8c189d78ee winhttp: Include <sys/socket.h> from winhttp_private.h. Remove now redundant inclusion from request.c. 2009-08-03 14:56:22 +02:00
Juan Lang 68039dcaff winhttp: Implement connect timeout. 2009-07-24 11:09:46 +02:00
Marcus Meissner ee59879da0 winhttp: Check for NULL return from heap_alloc (Coverity). 2009-07-22 14:42:49 +02:00
Juan Lang 80100334f1 winhttp: Set a socket's timeouts when it's created. 2009-07-22 12:04:15 +02:00
Juan Lang 235c6c1e1e winhttp: Use the correct address length when connecting. 2009-07-16 11:08:06 +02:00
Juan Lang bd7a2e70b0 winhttp: Issue CONNECT command to connect to a secure server through a proxy server. 2009-07-15 14:11:06 +02:00
Juan Lang 31545206fb winhttp: Use proxy server when redirecting. 2009-07-15 14:10:35 +02:00
Juan Lang 85579ebb4c winhttp: Connect to the proxy port rather than the host port. 2009-07-15 14:10:13 +02:00
Juan Lang 6fad52bd14 winhttp: When connecting via a proxy include full hostname and scheme in path. 2009-07-15 14:10:04 +02:00
Juan Lang d48eade7fb winhttp: Support IPv6 addresses in open_connection. 2009-07-09 12:00:41 +02:00
Juan Lang 646b9cae80 winhttp: Convert connect_t's address type from a struct sockaddr_in to a struct sockaddr_storage. 2009-07-09 12:00:23 +02:00
Juan Lang cc619639d2 winhttp: Change type of netconn_resolve from struct sockaddr_in * to struct sockaddr *. 2009-07-09 11:53:16 +02:00
Michael Stefaniuc 7dbba8c335 winhttp: Remove superfluous pointer casts. 2009-02-05 13:15:37 +01:00
Alexandre Julliard 690d112182 winhttp: Use ~0u instead of ~0ul for DWORD values. 2009-01-05 12:40:34 +01:00
Hans Leidekker 0719b6ed86 winhttp: Resolve host port at the latest possible moment. 2008-12-11 14:32:18 +01:00
Aric Stewart 3590a4227f winhttp: Correct another difference between InternetCrackurl and WinHttpCrackUrl. 2008-11-12 13:41:10 +01:00
Hans Leidekker 70f2f5d6a8 winhttp: Close the network connection if necessary. 2008-09-16 22:35:08 +02:00
Hans Leidekker 4a706aae70 winhttp: Manage a session global cookie cache. 2008-09-16 13:36:38 +02:00
Hans Leidekker 4ae5741c4e winhttp: Move handling of default request parameters back to WinHttpOpenRequest.
Avoids special casing all over the place.
2008-09-16 13:36:25 +02:00
Hans Leidekker 8df906f28e winhttp: Reset content length when all data has been read. 2008-09-16 13:36:09 +02:00
Hans Leidekker 10090eb252 winhttp: Strip content-type/length headers from request on a redirect. 2008-09-11 14:37:59 +02:00
Hans Leidekker bddcb1b8bb winhttp: Preserve cookies on redirects. 2008-09-11 14:37:55 +02:00
Hans Leidekker 0451643e02 winhttp: Redirects are always GET requests. 2008-09-11 13:28:45 +02:00
Hans Leidekker 28ae1d4f0d winhttp: Handle relative redirects.
Spotted by Jeremy White.
2008-09-11 13:28:41 +02:00
Juan Lang 12c1e067c6 winhttp: Don't reference past the attribute array. Fixes Coverity item 710. 2008-09-10 11:06:57 +02:00
Hans Leidekker f8f9c4cb9c winhttp: Don't loop on response codes other than 301 and 302. 2008-09-10 10:39:35 +02:00
Hans Leidekker 7f28c5f87e winhttp: Make sure not to read more data than expected on a redirect.
Fixes a bug in automatic redirects with content.
2008-09-09 11:02:17 +02:00
Hans Leidekker 01e7d12848 winhttp: WinHttpQueryDataAvailable should do a blocking read if more data is expected.
Spotted by Henri Verbeet.
2008-09-09 11:02:04 +02:00
Hans Leidekker f3346a789e winhttp: Support asynchronous requests. 2008-09-08 12:47:21 +02:00
Hans Leidekker a4d0abb234 winhttp: Add the remaining completion notifications. 2008-09-08 12:47:21 +02:00
Hans Leidekker 520b6e8153 winhttp: The last parameter of WinHttpWriteData is optional. 2008-09-08 12:47:21 +02:00
Hans Leidekker 3d8a9564cd winhttp: Start sending async completion notifications. Add corresponding tests. 2008-09-08 12:47:21 +02:00
Hans Leidekker 6ecd01b8d1 winhttp: The last parameter of WinHttpQueryDataAvailable and WinHttpReadData is optional. 2008-09-05 16:00:53 +02:00
Hans Leidekker 6fe2edb5de winhttp: Implement WinHttpQueryHeaders(WINHTTP_QUERY_RAW_HEADERS). 2008-09-05 16:00:46 +02:00
Hans Leidekker e078f618eb winhttp: Implement some more options. 2008-09-04 11:14:32 +02:00
Hans Leidekker 6bb3090732 winhttp: A non-standard port must be included in the host header. 2008-09-03 14:21:44 +02:00
Hans Leidekker 04a11bb117 winhttp: Add zero value content length header to POST requests without additional data. 2008-09-03 14:21:44 +02:00
Hans Leidekker 96bf72f27e winhttp: Add status notification tests. Make them pass. 2008-09-03 14:21:44 +02:00
Hans Leidekker 41a763629f winhttp: Handle redirects. 2008-09-03 14:21:44 +02:00
Hans Leidekker 8063f5cbd4 winhttp: Move handling of default request parameters into build_request_string(). 2008-09-03 14:21:44 +02:00
Gerald Pfeifer c3818f5cd9 winhttp: Include <sys/socket.h>. 2008-08-29 13:44:49 +02:00
Hans Leidekker f732065c4c winhttp: Test secure connections. Fix a crash when no response is returned. 2008-08-29 12:22:30 +02:00
Hans Leidekker 0b19e8559f winhttp: Add support for secure connections. 2008-08-29 12:22:23 +02:00
Hans Leidekker 70c6a8ac62 winhttp: Implement WinHttpSetCredentials.
Only supports the basic authentication scheme.
2008-08-27 13:21:20 +02:00
Hans Leidekker 3f85f4552b winhttp: Implement WinHttpQueryAuthSchemes. 2008-08-27 13:21:20 +02:00
Hans Leidekker 18677beb57 winhttp: Remove some unneeded includes. 2008-08-26 12:07:44 +02:00
Hans Leidekker 6619e54d1e winhttp: Implement WinHttpWriteData. 2008-08-26 12:07:43 +02:00
Hans Leidekker 728bf77c83 winhttp: Implement WinHttpReadData. 2008-08-26 12:07:43 +02:00
Hans Leidekker d7f5467652 winhttp: Implement WinHttpQueryDataAvailable. 2008-08-26 12:07:43 +02:00
Hans Leidekker b170ac20dd winhttp: Implement WinHttpReceiveResponse. 2008-08-26 12:07:43 +02:00
Hans Leidekker f07f2304b0 winhttp: Implement WinHttpSendRequest. 2008-08-26 12:07:43 +02:00
Hans Leidekker ac95d77e1f winhttp: Add support for querying most of the standard header attributes. 2008-08-26 12:07:43 +02:00
Hans Leidekker f14b6afb9c winhttp: Implement WinHttpQueryHeaders. 2008-08-20 12:52:24 +02:00
Hans Leidekker 8f1d818bf3 winhttp: Implement WinHttpAddRequestHeaders. 2008-08-20 12:52:20 +02:00