objective-ciosasihttprequestasiformdatarequest

Log ASIFormDataRequest body as NSString


I'm making a multipart request to server using ASIFormDataRequest, and I want to review the post body myself before the request is actually made. Is there any way I can print it to console or something like that?


Solution

  • Turned out that I just needed to

    #define DEBUG_FORM_DATA_REQUEST 1
    

    After that, the library logs all post body to console (except for binary data, which is truncated).