cancel
Showing results for 
Search instead for 
Did you mean: 

What is the Content-Type field value in rest client for Zipped files

Former Member
0 Kudos

I am testing in Google Chrome REST CLIENT. Please let me know what we need to pass to Content-Type when our attachment in ZIP File.

When we pass

"application/octet-stream" for Content-Type field in rest client.

and see in debugging mode

In Method: /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM, in parameter ==> is_media_resource-mime_type we are getting value as "multipart/form-data", Due to this reason I am not able to see the actual Zip File XSTRING value.

reffred: http://stackoverflow.com/questions/856013/mime-type-for-zip-file-in-google-chrome)

In my Gateway client when I am passing as below screen shot and I am able to see correct Zip File XSTRING value In Method: /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_STREAM

Please help.

Below are the F4 values I see in Content-Type field:

  1. multipart-form-dataapplication
  2. x-www-form-urlencodedapplication
  3. jsonapplication
  4. xmlapplication
  5. base64application
  6. octet-streamtext
  7. plaintext
  8. csstext
  9. htmlapplication
  10. javascript

Thanks,

Madhu M V

Accepted Solutions (0)

Answers (2)

Answers (2)

kammaje_cis
Active Contributor
0 Kudos

I do not think rest client will stop you from using only above 10 content-types. You should be able to type the value you want to use. If not use "Advanced Rest Client" Chrome extension. That allows you to type any value as content-type header value.

Former Member
0 Kudos

Hello Krishna,

I am using ARC.

Thanks,

Madhu M V

AshwinDutt
Active Contributor
0 Kudos

Hello Madhu,

Please pass 'application/x-zip-compressed' only as 'Content-Type' and check.

Regards,

Ashwin

Former Member
0 Kudos

Hi Ashwin,

Thanks for your reply.

I tried, I am still getting MIME_TYPE value as "multipart/form-data", Please find below snap shot:

Am I doing anything wrong in advanced Rest client:

Former Member
0 Kudos

Its working when I use postman rest client: Postman - Chrome Web Store

Looks like issue with Advanced REST client - Chrome Web Store