cURL Content type for "tar.gz" compressed files

1,518 views
Skip to first unread message

Matheus Marcon

unread,
Sep 29, 2016, 7:23:11 PM9/29/16
to xnat_discussion
Hello,
I've been trying to prearchive compressed tar.gz dicom files, but only zip files seemed to work with cURL.
What kind of content-type would work for tar.gz files? I've already tried x-tar and x-gzip and I got this error:
"Upload did not include parseable files for session generation."

This is the command that works, but I'm using zip:
curl -u user:pass -s -k -X POST "http://xnat/data/services/import?inbody=true&PROJECT_ID=TEST_PROJECT&SUBJECT_ID=4007&EXPT_LABEL=mr6_session" --data-binary @dicom.zip -H 'Content-Type: application/zip'

McKay, Mike

unread,
Oct 17, 2016, 5:41:31 PM10/17/16
to xnat_di...@googlegroups.com

I think you’ll want to use 'Content-Type: application/x-gtar’. I hope that helps, and sorry about the slow response.

 

-Mike

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at https://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Reply all
Reply to author
Forward
0 new messages