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
8ce78ca4
Commit
8ce78ca4
authored
16 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Fixed test case 1065 by changing the handling of CURLOPT_UPLOAD to set
the HTTP method to GET (or HEAD) when given a value of 0.
parent
fc961091
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGES
+7
-0
7 additions, 0 deletions
CHANGES
RELEASE-NOTES
+1
-0
1 addition, 0 deletions
RELEASE-NOTES
lib/url.c
+3
-0
3 additions, 0 deletions
lib/url.c
tests/data/DISABLED
+0
-1
0 additions, 1 deletion
tests/data/DISABLED
tests/data/test1065
+3
-3
3 additions, 3 deletions
tests/data/test1065
with
14 additions
and
4 deletions
CHANGES
+
7
−
0
View file @
8ce78ca4
...
...
@@ -6,6 +6,13 @@
Changelog
Daniel Fandrich (27 Aug 2008)
- Fixed test case 1065 by changing the handling of CURLOPT_UPLOAD to set
the HTTP method to GET (or HEAD) when given a value of 0.
- Added test cases 1068 and 1069 to test a simple HTTP PUT from stdin. Test
case 1069 fails in a similar manner to test 1065 so is added to DISABLED.
Yang Tse (27 Aug 2008)
- Fix generation of MS VC6 .dsp file to make it support compilation of either
dynamic (DLL) or static (LIB) libcurl libraries in debug and release modes.
...
...
This diff is collapsed.
Click to expand it.
RELEASE-NOTES
+
1
−
0
View file @
8ce78ca4
...
...
@@ -58,6 +58,7 @@ This release includes the following bugfixes:
o improved curl_m*printf() integral data type size and signedness handling
o error when --dump-header - used with more than one URL
o proxy closing connect during CONNECT with auth with the multi interface
o CURLOPT_UPLOAD sets HTTP method back to GET or HEAD when passed in a 0
This release includes the following known bugs:
...
...
This diff is collapsed.
Click to expand it.
lib/url.c
+
3
−
0
View file @
8ce78ca4
...
...
@@ -888,6 +888,9 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
if
(
data
->
set
.
upload
)
/* If this is HTTP, PUT is what's needed to "upload" */
data
->
set
.
httpreq
=
HTTPREQ_PUT
;
else
/* In HTTP, the opposite of upload is either GET or a HEAD */
data
->
set
.
httpreq
=
data
->
set
.
opt_no_body
?
HTTPREQ_HEAD
:
HTTPREQ_GET
;
break
;
case
CURLOPT_FILETIME
:
/*
...
...
This diff is collapsed.
Click to expand it.
tests/data/DISABLED
+
0
−
1
View file @
8ce78ca4
...
...
@@ -3,5 +3,4 @@
# test cases are run by runtests.pl. Just add the plain test case numbers, one
# per line.
# Lines starting with '#' letters are treated as comments.
1065
1069
This diff is collapsed.
Click to expand it.
tests/data/test1065
+
3
−
3
View file @
8ce78ca4
...
...
@@ -3,6 +3,7 @@
<keywords>
HTTP
HTTP PUT
HTTP GET
</keywords>
</info>
...
...
@@ -35,7 +36,7 @@ http
HTTP PUT with one file but two URLs
</name>
<command>
-H "Expect:" -T log/1065 http://%HOSTIP:%HTTPPORT/1065.upload1 http://%HOSTIP:%HTTPPORT/10650002.u
pload
2
-H "Expect:" -T log/1065 http://%HOSTIP:%HTTPPORT/1065.upload1 http://%HOSTIP:%HTTPPORT/10650002.u
rl
2
</command>
<file name="log/1065">
test
...
...
@@ -54,10 +55,9 @@ Accept: */*
Content-Length: 5
test
PU
T /10650002.u
pload
2 HTTP/1.1
GE
T /10650002.u
rl
2 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
Content-Length: 0
</protocol>
<stdout>
...
...
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