[Bug 14183] HttpSendRequest() should fetch connection parameters instead of HttpOpenRequest(), especially Cookies.

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jul 1 15:50:41 CDT 2008


Yann Droneaud <yann at droneaud.fr> changed:

           What    |Removed                     |Added
  Attachment #14455|0                           |1
        is obsolete|                            |

--- Comment #4 from Yann Droneaud <yann at droneaud.fr>  2008-07-01 15:50:40 ---
Created an attachment (id=14512)
 --> (http://bugs.winehq.org/attachment.cgi?id=14512)
[PATCH] wininet: move cookie loading from HttpOpenRequest() to

This patch does the following:

- Move cookie retrieval code to HTTP_HttpSendRequest()
- Don't allocate memory for url if INTERNET_FLAG_NO_COOKIES is enabled
- Be sure to not overflow lpszCookies:
  buffer size was nCookieSize + 1 + 8,
  written size is 8 + (nCookieSize - 1) + 2 + 1
- Optimized request header generation:
   sprintfW() replaced by strcpyW()
   strcatW() replaced by strcpyW()
   removed call to strlenW() for HTTP_HttpAddRequestHeadersW()
- Use HTTP_ADDREQ_FLAG_REPLACE to replace the cookie instead of adding

I'm still wondering about HTTP_ADDREQ_FLAG_* versus HTTP_ADDHDR_FLAG_*,
but I think the patch is ready for testing.

This patch also fix the problem spotted in comment #2

Patch generated with git format-patch

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list