Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
31443724
Commit
31443724
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
modified some log outputs, added comment about auth required as used in
test 154
parent
0e761491
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/server/sws.c
+14
-4
14 additions, 4 deletions
tests/server/sws.c
with
14 additions
and
4 deletions
tests/server/sws.c
+
14
−
4
View file @
31443724
...
...
@@ -390,7 +390,7 @@ int ProcessRequest(struct httprequest *req)
have been received */
req
->
cl
=
strtol
(
line
+
15
,
&
line
,
10
);
logmsg
(
"Found Content-Legth: %d in the request"
,
req
->
cl
);
logmsg
(
"Found Content-Le
n
gth: %d in the request"
,
req
->
cl
);
break
;
}
else
if
(
curlx_strnequal
(
"Transfer-Encoding: chunked"
,
line
,
...
...
@@ -431,7 +431,10 @@ int ProcessRequest(struct httprequest *req)
/* If the client is passing this type-3 NTLM header */
req
->
partno
+=
1002
;
req
->
ntlm
=
TRUE
;
/* NTLM found */
logmsg
(
"Received NTLM type-3, sending back data %d"
,
req
->
partno
);
logmsg
(
"Received NTLM type-3, xxxxxxxxxxxxx sending back data %d"
,
req
->
partno
);
if
(
req
->
cl
)
{
logmsg
(
" Expecting %d POSTed bytes"
,
req
->
cl
);
}
}
else
if
(
!
req
->
ntlm
&&
strstr
(
req
->
reqbuf
,
"Authorization: NTLM TlRMTVNTUAAB"
))
{
...
...
@@ -443,7 +446,14 @@ int ProcessRequest(struct httprequest *req)
if
(
strstr
(
req
->
reqbuf
,
"Connection: close"
))
req
->
open
=
FALSE
;
/* close connection after this request */
if
(
req
->
cl
&&
(
req
->
auth
||
!
req
->
auth_req
))
{
/* If authentication is required and no auth was provided, end now. This
makes the server NOT wait for PUT/POST data and you can then make the
test case send a rejection before any such data has been sent. Test case
154 uses this.*/
if
(
req
->
auth_req
&&
!
req
->
auth
)
return
1
;
if
(
req
->
cl
)
{
if
(
req
->
cl
<=
strlen
(
end
+
strlen
(
END_OF_HEADERS
)))
return
1
;
/* done */
else
...
...
@@ -878,7 +888,7 @@ int main(int argc, char *argv[])
}
if
(
req
.
open
)
logmsg
(
"persistant connection, awaits new request"
);
logmsg
(
"
=>
persistant connection
request ended
, awaits new request"
);
/* if we got a CONNECT, loop and get another request as well! */
}
while
(
req
.
open
||
(
req
.
testno
==
DOCNUMBER_CONNECT
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment