Guest User

Untitled

a guest
Oct 18th, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. diff --git a/src/libpiano/request.c b/src/libpiano/request.c
  2. index 35124f4..ac38516 100644
  3. --- a/src/libpiano/request.c
  4. +++ b/src/libpiano/request.c
  5. @@ -497,6 +497,7 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req,
  6.  
  7. /* json to string */
  8. jsonSendBuf = json_object_to_json_string (j);
  9. + printf ("%s\n", jsonSendBuf);
  10. if (encrypted) {
  11. if ((req->postData = PianoEncryptString (ph->partner.out,
  12. jsonSendBuf)) == NULL) {
  13. diff --git a/src/libpiano/response.c b/src/libpiano/response.c
  14. index 73b223a..7bd35cd 100644
  15. --- a/src/libpiano/response.c
  16. +++ b/src/libpiano/response.c
  17. @@ -85,6 +85,7 @@ PianoReturn_t PianoResponse (PianoHandle_t *ph, PianoRequest_t *req) {
  18. assert (ph != NULL);
  19. assert (req != NULL);
  20.  
  21. + printf ("%s\n", req->responseData);
  22. j = json_tokener_parse (req->responseData);
  23.  
  24. status = json_object_object_get (j, "stat");
Add Comment
Please, Sign In to add comment