Forum Discussion

depeche's avatar
depeche
Contributor
16 years ago

Is Content-Transfer-Encoding for attachment is by default 7bit?

Is Content-Transfer-Encoding for attachment is by default 7bit? Can it be changed to binary? I tried to set Encoding as binary and enabled Encode Attachments as true in TestRequest Properties, but still the request goes with attachment as Content-Transfer-Encoding: 7bit.

Request looks like:


POST /tf6/services/xdsrepositoryb HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/related; type="application/xop+xml"; start=""; start-info="application/soap+xml"; action=""; boundary="----=_Part_9_14147831.1260771662703"
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: ihexds.nist.gov:9080
Content-Length: 13402


------=_Part_9_14147831.1260771662703
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml; action=\"ProvideAndRegisterDocumentSetRequest\""
Content-Transfer-Encoding: 8bit
Content-ID:


.................
.................
.................


------=_Part_9_14147831.1260771662703
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-ID: <1.urn:uuid:6EDFA3D83414F32EAA1260765999616@apache.org>

This is depeche's document.

It is great!


------=_Part_9_14147831.1260771662703--


Wsdl location: http://ihexds.nist.gov:9080/tf6/service ... toryb?wsdl

Thanks for the help!

Thanks & regards,
depeche
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    binary is used by default for non-text attachments (ie content-type not ending with "text")

    regards,

    /Ole
    eviware.com
  • Hi Ole!
         But we need to send documents having content-type as 'text/plain' in binary. Problem is when i send the documents having content-type as 'text/plain', i get the following error:

    HTTP/1.1 400 Bad Request
    Cache-Control: private
    Transfer-Encoding: chunked
    Content-Type: text/html
    Server: Microsoft-IIS/7.0
    X-AspNet-Version: 2.0.50727
    X-Powered-By: ASP.NET
    Date: Fri, 08 Jan 2010 05:35:29 GMT

    Bad Request

    Can this be done at your future build?


    Thanks & Regards!
    depeche