Forum Discussion

Rhonda_Ward's avatar
Rhonda_Ward
Occasional Contributor
13 years ago

On linux media type is prepended to ContentType causes failu

On linux machine the media type is prepended from message body to the Header ContentType. Where the same does not happen on Windows machine.
Due to this all our test cases are failing on linux environment. Can some one please help us to resolve this problem?

Hers is the scenario:

I am executing a HTTP Post request. In my request I have added two Header attributes i.e. Content-Type and MIME_version
and also I am also passing some value to request via message body.

On execution I see the following request being sent via SoapUI tool On linux machine

Note: Please see thh Content-Type value


Request from On Linux:
----------------- Properties ------------------------------
StatusCode: 200
Encoding:
Method: POST
Username:
HTTP Version: HTTP/1.1
Endpoint: https://SXXX.yahoo.com/rest/v1/d94
URL: https://SXXX.yahoo.com/rest/v1/d94

---------------- Request ---------------------------
MIME-Version: [1.0]
Host: [sxxx.yahoo.com]
Content-Length: [790]
Accept-Encoding: [gzip,deflate]
User-Agent: [Jakarta Commons-HttpClient/3.1]
Content-Type: [application/xml, multipart/form-data; boundary=----------Ij5Idjahdjhasjkdhasnjkdaskjd]



In case of windows I don't see any media type value being prepended to Content-Type

Request from windows:
POST https://Sxxx.yahoo.com/rest/v1/d94 HTTP/1.1
Accept-Encoding: gzip,deflate
MIME-Version: 1.0
Content-Type: multipart/form-data; boundary=----------Ij5Idjahdjhasjkdhasnjkdaskjd
User-Agent: Jakarta Commons-HttpClient/3.1
Host: sxxx.yahoo.com
Content-Length: 790

Can you please help me to resolve this issue?

Thanks

4 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Rhonda,

    which soapUI versions are you using on these two machines? Can you attach the contents of the Help\System Properties dialog for both of them?

    regards!

    /Ole
    eviware.com
  • Rhonda_Ward's avatar
    Rhonda_Ward
    Occasional Contributor
    Hi Ole,

    On Linux machine I tried all the three versions of SoapUIPRO i.e. 3.6, 3.6.1 and 4.0. It is reproducible on all the three versions.


    Linux version:

    Linux version 2.6.18-194.3.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Thu May 13 13:08:30 EDT 2010

    SoapUI version:
    soapUI Pro 3.6.1 Linux installer (19 October 2010)


    On Windows I tried on 3.6.1. Here the help contents for it:

    Windows Version: 7.0

    SoapUI version:

    SoapUI Pro 3.6.1, copyright (C) 2007-2010 eviware software
  • Rhonda_Ward's avatar
    Rhonda_Ward
    Occasional Contributor
    Hi Ole,

    Any updates on this issue? Can you please provide me an example of how to construct HTTP post request using groovy?

    Thanks,
  • Rhonda_Ward's avatar
    Rhonda_Ward
    Occasional Contributor
    Ole,

    This is a blocking issue for us. Can you please respond a solution for this?

    Thank you