DescriptionSimple 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
MessagesTotal messages: 3
|