File content of multi-file upload file not showing in HAR (Http Archive) released by Google Chrome

I am uploading a CSV file to a server, and while debugging it, I wanted to use the HAR file generated by Google Chrome developer tools.

The postData of the request I'm interested in doesn't show the content of the uploaded file. I get the following:

"postData": {"mimeType": "multipart / form-data; border = ---- WebKitFormBoundaryS0nORM7anPTbfGxB", "text": "------ WebKitFormBoundaryS0nORM7anPTbfGxB \ r \ nContent-Disposition: form-data; name = \ "instrumentType \" \ r \ n \ r \ nFuture \ r \ n ------ WebKitFormBoundaryS0nORM7anPTbfGxB \ r \ nContent-Disposition: form-data; name = \ "csv \"; filename = \ "Book5.csv \ "\ r \ nContent-Type: text / csv \ r \ n \ r \ n \ r \ n ------ WebKitFormBoundaryS0nORM7anPTbfGxB - \ r \ n"}

Why can't I see the contents of the file?

+3


source to share


1 answer


After reading this carefully, I can see that HAR is meant to represent performance data. It is not intended to represent a complete request. Relevant section from spec at ( https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HAR/Overview.html )

"postData": {
    "mimeType": "multipart/form-data",
    "params": [],
    "text" : "plain posted data",
    "comment": ""
}

      



There is no promise in the spec that the text will contain the entire request object, so I think if HAR is only interested in performance data, then it is fair enough to refuse to download files.

+4


source







All Articles