Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2237)

Issue 6305094: [http #96] Curl logger

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by mlinder
Modified:
11 years, 9 months ago
Reviewers:
rmistry, yanivi
Visibility:
Public.

Description

Simple implementation of curl-logging. Only problem: Data requires the user to copy two seperate lines. Example (no data): CONFIG: curl -v --compressed -X GET -H 'Accept-Encoding: gzip' -H 'Authorization: <Not Logged>' -H 'User-Agent: Google-CalendarSample/1.0 Google-HTTP-Java-Client/1.11.0-beta-SNAPSHOT (gzip)' -- https://www.googleapis.com/calendar/v3/calendars/google.com_1uja4spq05fg4jnm5un0msqfjc@group.calendar.google.com/events Example (data) CONFIG: curl -v --compressed -X POST -H 'Accept-Encoding: gzip' -H 'Authorization: <Not Logged>' -H 'User-Agent: Google-CalendarSample/1.0 Google-HTTP-Java-Client/1.11.0-beta-SNAPSHOT (gzip)' -H 'Content-Type: application/json; charset=UTF-8' -d '@-' -- https://www.googleapis.com/calendar/v3/calendars/google.com_1uja4spq05fg4jnm5un0msqfjc@group.calendar.google.com/events << $$$ Jun 18, 2012 5:51:11 PM com.google.api.client.util.LoggingByteArrayOutputStream close CONFIG: {"end":{"dateTime":"2012-06-18T22:51:11.576Z"},"start":{"dateTime":"2012-06-18T21:51:11.576Z"},"summary":"New Event"} (user has to copy both lines, and enter an additional $$$<LF> to add the data content)

Patch Set 1 : #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -17 lines) Patch
M google-http-client/src/main/java/com/google/api/client/http/HttpHeaders.java View 6 chunks +50 lines, -11 lines 5 comments Download
M google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java View 6 chunks +65 lines, -6 lines 8 comments Download

Messages

Total messages: 3
mlinder
Please review as it fits (low priority)
11 years, 10 months ago (2012-06-18 22:04:37 UTC) #1
yanivi
http://codereview.appspot.com/6305094/diff/3001/google-http-client/src/main/java/com/google/api/client/http/HttpHeaders.java File google-http-client/src/main/java/com/google/api/client/http/HttpHeaders.java (right): http://codereview.appspot.com/6305094/diff/3001/google-http-client/src/main/java/com/google/api/client/http/HttpHeaders.java#newcode640 google-http-client/src/main/java/com/google/api/client/http/HttpHeaders.java:640: if ("Authorization".equalsIgnoreCase(name) we should also avoid "Cookie" header to ...
11 years, 9 months ago (2012-07-13 16:15:08 UTC) #2
yanivi
11 years, 9 months ago (2012-07-30 22:11:34 UTC) #3
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b