Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
8ab00329
Commit
8ab00329
authored
Apr 24, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Replace any existing cookie header.
parent
fbc99515
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
http.c
dlls/wininet/http.c
+1
-1
http.c
dlls/wininet/tests/http.c
+9
-0
No files found.
dlls/wininet/http.c
View file @
8ab00329
...
...
@@ -3227,7 +3227,7 @@ static void HTTP_InsertCookies(LPWININETHTTPREQW lpwhr)
InternetGetCookieW
(
lpszUrl
,
NULL
,
lpszCookies
+
cnt
,
&
nCookieSize
);
strcatW
(
lpszCookies
,
szCrLf
);
HTTP_HttpAddRequestHeadersW
(
lpwhr
,
lpszCookies
,
strlenW
(
lpszCookies
),
HTTP_ADDREQ_FLAG_
ADD
);
HTTP_HttpAddRequestHeadersW
(
lpwhr
,
lpszCookies
,
strlenW
(
lpszCookies
),
HTTP_ADDREQ_FLAG_
REPLACE
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszCookies
);
}
}
...
...
dlls/wininet/tests/http.c
View file @
8ab00329
...
...
@@ -1885,6 +1885,15 @@ static void test_cookie_header(int port)
ok
(
!
ret
,
"HttpQueryInfo succeeded
\n
"
);
ok
(
error
==
ERROR_HTTP_HEADER_NOT_FOUND
,
"got %u expected ERROR_HTTP_HEADER_NOT_FOUND
\n
"
,
error
);
ret
=
HttpAddRequestHeaders
(
req
,
"Cookie: cookie=not biscuit
\r\n
"
,
~
0u
,
HTTP_ADDREQ_FLAG_ADD
);
ok
(
ret
,
"HttpAddRequestHeaders failed: %u
\n
"
,
GetLastError
());
buffer
[
0
]
=
0
;
size
=
sizeof
(
buffer
);
ret
=
HttpQueryInfo
(
req
,
HTTP_QUERY_COOKIE
|
HTTP_QUERY_FLAG_REQUEST_HEADERS
,
buffer
,
&
size
,
NULL
);
ok
(
ret
,
"HttpQueryInfo failed: %u
\n
"
,
GetLastError
());
ok
(
!
strcmp
(
buffer
,
"cookie=not biscuit"
),
"got '%s' expected
\'
cookie=not biscuit
\'\n
"
,
buffer
);
ret
=
HttpSendRequest
(
req
,
NULL
,
0
,
NULL
,
0
);
ok
(
ret
,
"HttpSendRequest failed: %u
\n
"
,
GetLastError
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment