Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
9e497aec
Commit
9e497aec
authored
May 17, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
May 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added test of request with a long URL.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4227dfaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
http.c
dlls/wininet/tests/http.c
+22
-0
No files found.
dlls/wininet/tests/http.c
View file @
9e497aec
...
...
@@ -4717,6 +4717,27 @@ static void test_http_read(int port)
CloseHandle
(
server_req_rec_event
);
}
static
void
test_long_url
(
int
port
)
{
char
long_path
[
INTERNET_MAX_PATH_LENGTH
*
2
]
=
"/echo_request?"
;
char
buf
[
sizeof
(
long_path
)
*
2
];
test_request_t
req
;
BOOL
ret
;
memset
(
long_path
+
strlen
(
long_path
),
'x'
,
sizeof
(
long_path
)
-
strlen
(
long_path
));
long_path
[
sizeof
(
long_path
)
-
1
]
=
0
;
open_simple_request
(
&
req
,
"localhost"
,
port
,
NULL
,
long_path
);
ret
=
HttpSendRequestA
(
req
.
request
,
NULL
,
0
,
NULL
,
0
);
ok
(
ret
,
"HttpSendRequest failed: %u
\n
"
,
GetLastError
());
test_status_code
(
req
.
request
,
200
);
receive_simple_request
(
req
.
request
,
buf
,
sizeof
(
buf
));
ok
(
strstr
(
buf
,
long_path
)
!=
NULL
,
"long pathnot found in %s
\n
"
,
buf
);
close_request
(
&
req
);
}
static
void
test_http_connection
(
void
)
{
struct
server_info
si
;
...
...
@@ -4767,6 +4788,7 @@ static void test_http_connection(void)
test_basic_auth_credentials_reuse
(
si
.
port
);
test_async_read
(
si
.
port
);
test_http_read
(
si
.
port
);
test_long_url
(
si
.
port
);
/* send the basic request again to shutdown the server thread */
test_basic_request
(
si
.
port
,
"GET"
,
"/quit"
);
...
...
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