1
0
mirror of https://github.com/golang/go synced 2024-10-07 05:21:22 -06:00
go/src/pkg/net/http
Pawel Szczur 4918e3a960 net/http/client.go: fix cookie handling on (*Client) Do()
Fix the problem with no cookie handling when sending
other than GET or HEAD request through
(*Client) Do(*Request) (*Resposne, error).
https://code.google.com/p/go/issues/detail?id=3985

Adds a function (*Client) send(*Request) (*Reponse, error):
- sets cookies from CookieJar to request,
- sends request
- parses a reply cookies and updates CookieJar

Fixes #3985

R=bradfitz
CC=gobot, golang-dev
https://golang.org/cl/6653049
2012-10-29 17:56:31 +01:00
..
cgi net/http/cgi: add an empty response test 2012-02-26 14:46:22 -08:00
fcgi net/http/fcgi: don't mention threads in docs 2012-02-10 10:29:57 +11:00
httptest net/http/httptest: mimic the normal HTTP server's ResponseWriter more closely 2012-10-07 09:48:14 -07:00
httputil net/http/httputil: fix race in DumpRequestOut 2012-08-29 09:05:30 +10:00
pprof pprof: add goroutine blocking profiling 2012-10-06 12:56:04 +04:00
testdata
chunked_test.go http: make httputil's chunked reader/writer code a direct copy 2011-11-09 14:55:52 +11:00
chunked.go use new strconv API 2011-12-05 15:48:46 -05:00
client_test.go net/http/client.go: fix cookie handling on (*Client) Do() 2012-10-29 17:56:31 +01:00
client.go net/http/client.go: fix cookie handling on (*Client) Do() 2012-10-29 17:56:31 +01:00
cookie_test.go net/http: some more cookie tests 2012-02-23 15:51:53 +11:00
cookie.go net/http: lex cleanup 2012-04-23 10:26:10 -07:00
doc.go net/http: fix reference to URL.RawPath in docs 2012-02-10 22:39:57 -02:00
example_test.go net/http: fix misplaced defer and example 2012-08-21 11:46:07 +10:00
export_test.go net/http: reduce mutex contention 2012-08-20 13:28:27 +04:00
filetransport_test.go net/http: make test remove temporary file and directory 2011-12-12 10:40:15 -08:00
filetransport.go
fs_test.go net/http: use r.Body.Close to close connection during TestServeFileFromCWD 2012-09-24 12:48:19 +10:00
fs.go net/http: add If-None-Match and If-Range support to ServeContent 2012-09-10 10:16:09 -07:00
header_test.go net/http: added ParseTime function. 2012-08-31 18:10:16 -04:00
header.go net/http: added ParseTime function. 2012-08-31 18:10:16 -04:00
jar.go net/http/client.go: fix cookie handling on (*Client) Do() 2012-10-29 17:56:31 +01:00
lex_test.go net/http: lex cleanup 2012-04-23 10:26:10 -07:00
lex.go net/http: lex cleanup 2012-04-23 10:26:10 -07:00
proxy_test.go net/http: reuse http proxy connections for different http requests 2012-05-28 10:46:51 -07:00
range_test.go net/http: support multiple byte ranges in ServeContent 2012-06-29 07:44:04 -07:00
readrequest_test.go net/http: add Request.RequestURI field 2012-01-26 14:37:14 -08:00
request_test.go net/http: provide access to POST-only form values 2012-06-25 20:41:46 -04:00
request.go net/http: provide access to POST-only form values 2012-06-25 20:41:46 -04:00
requestwrite_test.go net/url: cleaned up URL interface (v2) 2012-01-17 00:49:05 -02:00
response_test.go net/http: fix duplicate status code in Response.Write 2012-05-21 11:07:27 -07:00
response.go net/http: don't modify Request Method's case 2012-07-30 10:05:24 +10:00
responsewrite_test.go
serve_test.go net/http: fix data race on countReader.n 2012-10-12 09:17:56 +11:00
server_test.go net/http: add (*ServeMux).Handler method 2012-08-31 12:16:31 -04:00
server.go net/http: add (*ServeMux).Handler method 2012-08-31 12:16:31 -04:00
sniff_test.go net/http/httptest: make Server.Close wait for outstanding requests to finish 2012-02-29 12:18:26 -08:00
sniff.go net/http: document use of DetectContentType 2012-02-12 23:14:48 -05:00
status.go net/http: add overlooked 418 status code, per RFC 2324. 2012-02-24 11:55:31 +11:00
transfer.go net/http: avoid a bunch of unnecessary CanonicalHeaderKey calls 2012-05-28 11:07:24 -07:00
transport_test.go net/http: fix misplaced defer and example 2012-08-21 11:46:07 +10:00
transport.go net/http: fix race on bodyEOFSignal.isClosed 2012-10-12 08:32:56 +11:00
triv.go net/http: couple more triv.go modernizations 2012-03-15 10:06:25 -07:00