ihsanbal / LoggingInterceptor

An OkHttp interceptor which has pretty logger for request and response. +Mock support
MIT License
1.33k stars 112 forks source link

Omitted Request Body #26

Closed mraj0045 closed 5 years ago

mraj0045 commented 7 years ago

Request Body is omitted when using multipart form-data as the request METHOD

AlexTip commented 7 years ago

I have exactly the same issue. Log looks like that in case request uses form-data:

I/Request: ╔══════ Request ════════════════════════════════════════════════════════════════════════
I/Request: ║ URL: http://url
I/Request: ║ 
I/Request: ║ Method: @POST
I/Request: ║ 
I/Request: ║ Headers:
I/Request: ║ - AccessToken: token
I/Request: ║ - DeviceId: id
I/Request: ║ 
I/Request: ║ Omitted request body
I/Request: ╚═══════════════════════════════════════════════════════════════════════════════════════
smelfungus commented 7 years ago

Same here. Is there a way to display form data?

ihsanbal commented 7 years ago

There is no way for LoggingInterceptor to log form-data yet. Interceptor support xml,html,text,json or plain text.

johnLegasse commented 7 years ago

form data would be a really big addition.

hmedat commented 7 years ago

+1

andyxialm commented 7 years ago

Same here.

khaledkhj commented 7 years ago

+1

ooftf commented 6 years ago

form-urlencoded should be print

loopq commented 6 years ago

same problem.

hmedat commented 6 years ago

I have removed this lib 👍

lerendan commented 5 years ago

+1

chihung93 commented 4 years ago

I have removed this lib too...