Performing soap mtom requests

Hi Stéphane,

I’ve created a small example project that illustrates the issue I’m facing

Stefan

https://github.com/landro/gatling2inject/

Just use getV instead of get.

getV returns a Validation, while get returns an Option

Finally got it working. It seems like I got tricked by the deprecated ssp support not working as expected (no parameter substitution took place). I had to replace it with the ELtemplates.

Anyways, the Content-ID thing you implemented doesn’t seem to work. In addition, the content-type is always set to multipart/form-data, even if I try to set it manually.

In addition (minor problem I think from a soap perspective), I don’t need the Content-Disposition header, but the api doesn’t let me skip it.

I’ve updated the github code with the changes I made.

Here is the dump from a Charles proxy:

POST /service HTTP/1.1
Host: localhost:8080
Accept-Encoding: gzip
Connection: keep-alive
Accept: /
User-Agent: NING/1.0
Content-Type: multipart/form-data; boundary=jveJ0W–JdVruzDWLGzVxCzM2B8qAIYEHL
Content-Length: 14667

–jveJ0W–JdVruzDWLGzVxCzM2B8qAIYEHL
Content-Disposition: form-data; name=“nameofbodypart”
Content-Type: application/xml; charset=utf-8
Content-Transfer-Encoding: binary

<soap:xml stuff/>

–jveJ0W–JdVruzDWLGzVxCzM2B8qAIYEHL
Content-Disposition: form-data; name=“part2”; filename=“test.pdf”
Content-Type: application/pdf; charset=utf-8
Content-Transfer-Encoding: binary

binary content

I have a 3 hour train trip this morning, so I should be able to fix this.

I’ve just pushed the fix, can you give it a try, please?

Hi Stéphane,

Just checked out your fix tonight.

Actually, only the first part is sent across the wire, even if I add several. In addition, the closing boundary is missing.
Other than that, everything works as expected.

This is my updated simulation:
https://github.com/landro/gatling2inject/blob/master/src/test/scala/test/TestSimulation.scala

HTTP traffic dump from my proxy:

POST /service HTTP/1.1
Host: localhost:8000
Accept-Encoding: gzip
Connection: keep-alive
Accept: /
User-Agent: GATLING/2.0
Content-Type: multipart/related; type=“application/xop+xml”; boundary=T1xFHBPuj3D1Hx9nLHlOR657uQfITdr-Ex9uPvGu
Content-Length: 14574

–T1xFHBPuj3D1Hx9nLHlOR657uQfITdr-Ex9uPvGu

Content-Type: application/xml; charset=utf-8
Content-Transfer-Encoding: binary

userid : 2 saml : prefix_2_suffix

Damn, I did test this.
Will investigate tomorrow…

Worked for me (see below).
How did you get the last Gatling version? Beware that we ran out of Cloudbees free credits 10 days ago, so the snapshot there is not up-to-date.

–llf90t4ebaGl0gutR8DiE8IlS1Wr4b

Content-Type: application/xml; charset=utf-8
Content-Transfer-Encoding: binary

userid : 1 saml : hello
–llf90t4ebaGl0gutR8DiE8IlS1Wr4b

Content-Type: application/pdf; charset=utf-8
Content-Transfer-Encoding: binary
Content-ID: somecontentid

%PDF-1.3
%���������
4 0 obj
<< /Length 5 0 R /Filter /FlateDecode >>
stream
x�R�N�0��SB�o��coˉt��ёC���#�|6�H4�����Ξp�lD$gD"�X���8b��,�ݾ�� �9���WZmq�@��l���<61\b�Ɠ_"�ؤdM����}x���z��Dz�MR:+B�� �#�!��k&��������%e2��1�a���N;�^�E; oe���6ةN2��9n��\���X�K4�[����~�q�� �l5۳�M�(�ɐ\wy�]��X�R��ۉP��Q�˰j��������|��L�_ ��C
endstream
endobj
5 0 obj
288
endobj
2 0 obj
<< /Type /Page /Parent 3 0 R /Resources 6 0 R /Contents 4 0 R /MediaBox [0 0 595 842]

endobj
6 0 obj
<< /ProcSet [ /PDF /Text ] /ColorSpace << /Cs1 7 0 R >> /Font << /TT2.0 9 0 R
/TT1.0 8 0 R >> >>
endobj
10 0 obj
<< /Length 11 0 R /N 1 /Alternate /DeviceGray /Filter /FlateDecode >>
stream
x�UMleUg��Š�U+�’�ZEi� ���:i"���Rm���֛�ew�6QO��T!� �z��Z~���^��TT��H� �8���Y�C�z����̛�f�K�}��<�K�;�_��ξ<{Ltߠ.Ҩ��f�eK� Ǝ�H��|�}K)���˾:�6ݥ�20�u�-a�<QJ’����u�|�t�1~e����d�<���C�H�2E�7D�w+���u�s���3o�9V~va���q��"�3Ut�Y��Mcd
�x� �:]��k3٦�k�����’��/?�e+��a~�9Y<�_����g;俛A��cDʖ������̏#�X����Q����_X����K�}�8\�
��N�]��[�]��_���ˇ�K�]仐��,�(�=������X��Пf[��o�:4 �³�zx¯OrlO/�H~��3ü1�Q6���S�ы)�$�t�&9��
ȢF�<�qV�ަ4,����T�LP�egQ’!��T���^��4�~p#�{‘ڛets�qh>D|��X�U����$�~uB}NR�I�/�a���<�����Ƈ�����7ޅצ�ר���܎��{�%�U�����:,�v�s���ks��$Gȭ���!�|];���D�bU�x�fϵ�t$Y��:卵H�N�I���Vz-�#�Cz
�[�E���yd�ʈ�x0�q���+G��#�؅б�G���U�

�Z�T�扞�ȗsgW�s;<�ć̫|�x�HK}���/�a�w�����Ѵ��%Q�)o)�)_)��ϕ�$�+ʊrY��|�|�ݧ��(���u[=��vf�q1ܱA�k3o,mEp
g�K���~nߥ�vj�jy�a�qmB���ia�m� ր6�����v��q5y��=k�l�f��U����g=.�S�f�E�#��f����s��H��޵�]�:�QV݇I!���H&�ɒ��f�3�Ì}s�Df7N��=�ΈY1�:yɄs�d{}^�_�{��4�m�d(���E�s�ߚ��bPןY�"�s��>aض����@�
Y�’~���G��jj�u��7�2J��&�"j��
endstream
endobj
11 0 obj
1088
endobj
7 0 obj
[ /ICCBased 10 0 R ]
endobj
3 0 obj
<< /Type /Pages /MediaBox [0 0 595 842] /Count 1 /Kids [ 2 0 R ] >>
endobj
12 0 obj
<< /Type /Catalog /Pages 3 0 R >>
endobj
8 0 obj
<< /Type /Font /Subtype /TrueType /BaseFont /DUAMTC+Monaco /FontDescriptor
13 0 R /Encoding /MacRomanEncoding /FirstChar 32 /LastChar 120 /Widths [ 600
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 600 600 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 600 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 600 0 0 600 600
600 600 0 600 0 0 600 0 600 600 0 0 0 0 600 600 0 0 600 ] >>
endobj
13 0 obj
<< /Type /FontDescriptor /FontName /DUAMTC+Monaco /Flags 32 /FontBBox [-610 -421 804 1223]
/ItalicAngle 0 /Ascent 1000 /Descent -250 /CapHeight 780 /StemV 98 /Leading
83 /XHeight 561 /StemH 76 /MaxWidth 606 /FontFile2 14 0 R >>
endobj
14 0 obj
<< /Length 15 0 R /Length1 8392 /Filter /FlateDecode >>
stream
x�9 xT����;K2�Irgr�I&+ �!��L� !�&��,��E�, P
XӖ ��(��z’[ʳXbm��k��+VS�Ej2��’ �پ�{���o���?���?��﬿mC3$�V`��e�%�
��4�6`I��S��6����n/{qY[Kk�m��=-��G߷�a�����ai�X-ǎx�L�r����w����,_��io�P|k����a�[eZ���R5m��Y�~�m²���QzR���^+�� ��a,���"���~�=�w��_��
w˟��VN��n�Z~J�F�Kl�5z���D����ZY�[sC�4Y#���r��z1��.gUNW�߬�M��U����3�������7T$�B� !�@{Ӥ�>�a=���d=�!lE8����N���p�� �\q��ҍ�SJ0H��@ҋy��I�G�y���ӫ’h1#���m8�+�H�<6�>�;m�t���>���}�R!�� n����iSy��ýR6��4ڗz�e#QO�8����m��%�Q5����e I3�$ I:-SA���CI�>����ȕ�O��O.�"r�� ֟���G|��T�V</��#;����-����=�uҭq��x� ���8�z�z�L����L��+Ml���^iB�:�L��b���2)������y�}��Bg��9O�T���3O��:3�� �3Up�6�"&�&� ��N�DF���Q2�Y9tZ�8�sZ݂J��b�+,2P ��#\_��Bb�<��X�)��X�V�KV�u֗g~�<�Tɜ��c��� `�pD�>�J��Y��N �I1� �q�’E�3gA��|J��O+���9�� �7������pyy��5}����|��>]^{� '{� D J�H� $� J�
ֆ�q�YJW@ ��0N�e�U���i���=fH�V�Q�it�iDm���!� a�4�[a�F3?��V��G��dfHBN�����6eF��I��2M�}��f��|��Zk�yh��U]�f9/���՝e�{ԭ�~Ϫ��W�`}c�rZ64����ru�\��7�E�����
/���R��{�+��rCy��ꪖk���\U��2W5��Ε��7f��Φs�йZ�\�J�6Wxł��L�u�7�[��u��� Sn��l�$��i����V��������
n�)�
��
��\������!����EhW?�K�����,x i� Ά-�f8A$�y������&�IO��0�0 ��P���k���fx��1x�X�B
H’9��<F֒��@��#Ar���� ��G��1"ጕ8�C$®�vŚb�c�7���yؿ����y ~ao3f���DG?�-���m����ʰ^�c7α�hZ8F9����f� W�͏�b-8C ��B(����m������]�.�WD"�I6)#�ȝ(�����edzl/;�I\���u�Lt],1���Z�,�fX�\l��P�T��8?�V�$Ǫ!���1���br��L�̴2_�v!��m�v �щ�Ǣ�bB���ñ’5�ǡ�D�B���� EP����x�.4�2X��o�{`7�E9���s|^��
x�:G��D�D�&.]ʷ�4�
d+�%G�k�4�O��\b�0{���1�<+�����.� ;��͞��;�����b��a>�7���g���M@�Z���\�~�����[\��"�� �3� 䢀L"S�)%�d1�%�I+r��l#�I7��K�����0��.f7�<�syϖ�ZT _�د��|JqMZ����in�_���w gqo �+p���ʃ�O8�|>��ԋ:���Vl5F6’a��m$�T0E�.�íL�I^%UL��#��q��4�S�?
_1�dà}�fRq�{Ђ�}��p7;n��������n^D�k���’���/�v�\��������̘8a|0}���K�)ɾ$���r:�6�Ŝ�`2����9�!��+��j�^��Y!ږe��᪎zՏ]�Ҩ~�^���T�r�J%N�\�$1���aٯ�Q.�#�ek��@�\�W���\���F6|��,/����V+6.���<�E�T�!�}�0ґU(k،~�(EXM��êW�:���p�R��ƚp�/�
e���InTA���3G_�FV�2UW�C�W�(���d���@c}�i������m�!ª5Su����AO(+B�/�Q�e �lN�m��n-ǃ�2ex�(��H�2�
��R�W�6�i�a��’a�LS�ď���~U/ϔ�w��G�’u�0�=Л����[K
�;����’�6�’�8�c~�!���^� e�y�\@���f�f��gK���{�����g˫g��3���eM�����&?2P##�Sh�<:����1��|j���2
�R�t������zy��k{F{t�/�"�_1e�4\����jF�<�R3.�V�u��6�>���W}x�Cu
�U;-a�Ѕ��Xae��ek�m?4�zA�ɬU�z�9~�\D1[/c��^/�M�D�Kp�b���lq��˧���/��o;Ys"����!���J#P�҇w&����"P@�~E9ʏ�IYؑ�Za���^�ڮ�w�;f/��W�Ys�Z����}A�
��T��w��[;
�)���+H�Q�#�K�+g�&g͡�Ju͍5��r���!.n���㸇Ь#0�
�����Q��"�S2?->
�[q�ڎ:�j��;:|t��۸g�v(��$t/D��j| 9�r@ [��8�uY[�nn�
� C�BP�!܆������X�#t#,A�Gxa
.p�� x#�� �k����H ^2�� /3�G�5�� “Z :A�m�܄�&.�D��h�k����D��r7��a��G�z�)��L��n�n�����G�cH�+zA�B8>�e"d�bCu8!��$=�Ka�W�’Y��’��r�x�Hq��”-���2R<B��܉���:d���O~����:��D�N��/�+�b`|���X��<S�/���=�!����g.�V��ӱ���l</�aΐPf4� ��oL�%<_7�p��~�’l�ͺ��Ń#Ń��Hq�{���͖W�ram]�5��E� �g������w��’e�us?)�%ﹺ�_���|w!ߊ�d8�,����|���.(�
���{m`e�ʔ��+�Ձ
��ۅvߦ�M)w��)�a�zN~6���c��+�mz�O���z�MKN2&FȱC.^N������8?ie$�c;�}e�ݭi}��
}�8C�j�jsO�x��[֮X�^S�’=�mT�ɛ��L���meԑ���pR �R%Lᤠ�F�/!���Йl8exQ��E+�o��}��aV޾ed~��Mw����M����̇�-Y8��dik�\�Lqh��[V��㵷����hO
��V_�`�2����Sa��d��Śf%&2,È��x��]�Lw[.��\�C�JmSs�,C�$ɼ������F[&q�b�’f�]p��L�ô���#V���`8y|A~ � �����o�4��g�=��b4��� �,�~}WW4������{E����r�p�x���a��’�
��$�T���%艤�����I5�|h�M����<��G6�͐:�5��eK��W�$�yC��ؒ�|�6�yU[�e��K��n��A:�A�Piqi�mN��gg�7�JW�.�Լ\�l�7�Ӌ�Ηa^�/���<H<���U���]�I~��Ij%‘1�J�w�W�[�3��EM?��i��I���|��]`u�� kE�`�WA~۾賥���}���U�ь���E/|��z�o����_<A�z� ;�����1?)z���ap��
u���Ԇ�����A��tp����o��M�KJ2��aa֕lwXm�a�\�A��Qyf�d�&�¤� �=�e���y4����P)��2H�C�FQ�}T?>Λan�7���<����II%LI��R{%I�_��:�k�U���ts�5�9�m�!��K޺F/�cg�e�M��xY�W�\��7�;R���s����׻F=z��"0N��cN�Ln���f3�C�e��y�n3S�d~2GW�ct���k�j7�P�n%�yTIԎ0��i�7��Y�\���fԒѓG��� H��� �|y$E�Q�e�bm��N]���a�e��p����L�?�q�������ž�>�6<���;#^&to��gW�!�’&I�Ea�oMX��������� Ϣ߸�Y��YI�[��h1�~S��²�rX|U��bJt��UIu2 $��4e=G$��hw0�j/��\� �Ŀ�ңG�j�&m�P�X��� ��+L!xX��.-=���{�V{�\r4f��’�����zrgv������x4�S�_��׉/��� ��_R���W���_��}��$����D]Ge��WJ���e����d�M4���qd��’�.s�8ɾœ��
O���5�?H}?f��Rg1� �t�5٦�6���p89�? R�N fr� ř�A�����g�A����`�ҙ�!233�a���P6a�IV%b�J�-_�MЍ��’V�N�qr��BjE����}c�N�~0���>Z�hoNNڷm��F��Y�za�E;�ȿ]�����h7ءD�[?4�9V����d�\1���s���S��������J�<o�,�N2 meo������<�<r~qp���ニ���%���Ғ��ؠy�/�w�)Ц���8-{8^"����ey�����!@}��S˧W��y��ע��H���G���� ��7 �?Tr_ЪtV��:��i�7tN�!�$��6}���’��Dr�?�+e}(u��1[��
7���.4l,b�9h�H�ޚ��
���`�s���V�6�Q va�^u��A��Od-���xR6�-:���_��MO���5����]����9���x�ef���
t�3�ϋ�(�w�e���q��;IN2’���)�x�p�x�T�)�)�I�I�I�I��a�A�0��!���,�d�`��h��>�� ����z�Z�9v��Q;���f̉3���<�
� p1�YDe�3��leA��Ӡp������N��|� ����g>�Rծ=�����ho,��>����s��õ�G�g�’��{a���.�y�"�� c۩�
}Ќ��C��%ct��1B�U� 6�$��PT��jt�iLQ|���!-&�u
t�9�#ȧ;9[�u�<���FF7r6)Զ�[㞝�񽍓7�h�~L����YY5{GWh��&5BNt�ђ��k&-�kI�A�’�G;�ʤ�m;#)V�f�&c@K5:�G�gH��6%HF�!G�� =�G;��j�I#��x���e;5a�tj�@�tT��Ǻl��S2�N1L,�q#����r��7�wk�>�4��l%W���/::V�Ĵ�����=�줲��{ e3�I�
-+N�’�&
�Ta�¶p��u�^�s�^�����S�[�G��.�d��oa���2w���?2�D=Ct��’: @��FX�N�l�b �M����C�f����e0��eA����"!�k��Gj�㭲 �Y�b��aod����\�γ#ۓ�c�fLx���@��’b�#y9��oD&��E7�7>���_�����#ёg�+(1�
S�~�d�Nch’~�.�/�`6~���C߈�z.��R� �����^�͘��,s�[e��P��tVj�#܁p�^��"�?��!\�E��)�b� �p�N0¿��7��?�]=��0�������W����j��yŘ��1�[ǴQI�ȣ����[��}a��щ��
endstream
endobj
15 0 obj
5882
endobj
9 0 obj
<< /Type /Font /Subtype /TrueType /BaseFont /XCYFTX+Monaco /FontDescriptor
16 0 R /Encoding /MacRomanEncoding /FirstChar 101 /LastChar 116 /Widths [
600 0 0 0 0 0 0 0 0 0 0 0 0 0 600 600 ] >>
endobj
16 0 obj
<< /Type /FontDescriptor /FontName /XCYFTX+Monaco /Flags 32 /FontBBox [-610 -421 804 1223]
/ItalicAngle 0 /Ascent 1000 /Descent -250 /CapHeight 780 /StemV 98 /Leading
83 /XHeight 561 /StemH 76 /MaxWidth 606 /FontFile2 17 0 R >>
endobj
17 0 obj
<< /Length 18 0 R /Length1 5324 /Filter /FlateDecode >>
stream
x}8 XTי��’��3 �;\
�d��Z���43�DP����Z0���٥�hLl�&�Dc�^�Ga4]�6�a7��m��d��V��W����Qg�?w����9s���9��{ϝ�Ƿ ������ZR�h�����pS�`M�@�õa���]�Í#˺����M�����m��Cub8V����gz���Pg޸�s�o�J��ǿuZ?�’��c��A���M}�
�%KzL�#�5 �*@/�C3h�3�:�����9�K��d�#��e��W���o�b��G˶�o���d�9�U�1h�"DŽOn�w�f8�ˊ���N���[�?��:�����lÇe>�wu��Q_V�a�G�W�5a\�W���
�l �u��[ea-zU�}��Ԇ�]�&�D����(q�+�8�����W��Ą�
Q��
�r����0�ө<�x�Z!L0�(�O�0�~aO���i�th��x�q Z�<�hr8T0L�ǡ�5�<E 6�dHl$�8�PeO��JIh4�Ǧ(’
�E��4�A�1�\cQ�n�a.t`>-a��9 xJ�L��K��:�� �2�’$=&7�a�Z|�Ƈ���C����u���xE#_��xJ<(��ݱ�.y��XL�3V��?�/����rXO�3JH����8;&]#�3��s�F�F-[��k,�a�ot#>��J݈S7�P7R�e)Ӎ�F�t#9�T}�ެO���z�^�������g1�V�Z3Z���:6�E�K�� �9X�T)��sY�1���KC�¤�&�}:�J����,�/���e� #�O8����e:&�|5qFT��\э�8�le����l�2�
�����˫�ox����v�� x=c�a<�net���;#Fʎ��`b����@�_abbu9��7�\$guB�
�gu���h��v��ԑL�:T�����^]k��N2v�Hf���2�s�T��Lݨ,��|�Hσ���x^U�ǖQe
c2�OߕI|�/dj�+�e���(��x��
�����j>e�@�Eꐤ�
�CR�_Gg����]��
�K�W�}�����e�(�s�yF�9�P���-�]��-������]�-����kf�J�y_ѵ��K��uL�:���Y��rw�^��������O̾�>m3�t�J�v��]d0����7Od/��Ȁ���`-V�8�%���A����8��8
3��� 7�8�9�F�8A2��
;0L0�"Q�lj�ΰ�8�Kq4�8������fX�������3�^��1 �؄#x.�5�y7�ya2z��� �^Pm� ����^#“i\F+<�a�_�e���A*qV}=yAک���_sFn�?�OFNF.EWG�;���`�|�W�x�t�Sjއߒ�a��� MBk�]G��4��N>,�5� <[� �7��%� _���X���� o���E�
��o�C�
! ��΅H_41���,h�l”+v��(�,��(*XDky��+p\ W�-嚹���O���5�_ث E�D^�܌�K�/D_U�~EJVȁB�eP

�m�j�#� ��F�~v�sp��8C��T���a�yu����y�’kb�U�a’n�! �i|���^���r�w�;�]���F�����’�_����oSD�PxP��&r ����?���&��A<��Q��8� ��<����d�U��<��L6XȊ
���
� D/vaY�
��9<H6�p�l��i8 ����=ǽ�}�]$�
��E�u��E�,��@9����aaRӯ�֬{Jw���$�w�
��!���e)D:/�8�fl#�l���’��8 ��j�%x���=�3l�r95����� ae��׮�|���J���}�ˡ�v�>t�w��y�?�<���r�FO�o���� ��6��8疗9J�%�Esf��ɹ6I�ɞ��i�d����$‘�M� �qF�^��<�P▛|�R�S��a� ��D����HDj�WF��<?��t��_�t�$�3�h���^"�eI��%Ka|x���ϸd��L���X(P�Bl6�!�-].IA��V����.������h�������
4��s��[ɔ]n�Әx|�ۿViY�q��l6��D��N�Cy�b������m#–u+��FK������+�_+��ã�~Z­$+�K�x��^�7�<��1��F����Шu�E/�����ҟ����7��&���CY��a�����A��́�+��X�o����rWp��"�T�u���t��c-�-�<�MiȒ�~׬�T��:%�{ɘe�en̾Ⱦ��6ˎ�ݓ1�/�2h�� �����i�R2]�:%2�#��5� �@���BLŋ�y7E�4�'�M�Y��7��퓧�p/�?M��oc���le�w�Jq�RTD��,(Yd�B�Pe/P��^��d�eZ<4�;�A���X����C�2���%�� ��Q�U8㜽�I[�8Cw93�}2���z i���g2�����+����*��vJ�����E�;o�n�ape��7��7�a����E�RYB�"e��J�&�{E�+��ҵA�I�m-䫐���A���tS��)No��0��Χu��:4�ă^Za�� U�� �+Y�n*-�Ueȕ��ݐ�Ja�,��,�!��a����,��m����l�)"���*t��%�� [s5۟g��� ;�1���W �iB�; aj��d[#�6�Ffy]�jA ݭ���<Km'�#�|����+�׭�=9��kV�H���>Y��s�pq�����X<]��N�N���&���xșL*��.��L�F�͡U?�%�)n6_�[q����9�Pg�Sw�u�es0ɦ�%��;�’�#��C�y��YL3a;��� �
���ΕMik�����ه����’���I���4��KKI�����%�&�%eu)2gy5��e���U��A�i�9U;T��WL�Y�+.OA�T�Tr��,ä�Z����e���9�l>9�@��$�"Ȍ���,Czd�5)E��*�l]V҅�bW��a����Z9����L������fK������VUY �j��߼���������w�v��r��'w���۽�__�~?f��f�����g}[�ͬ��:� ‘�E��b3a=�Q.�tp�9 ��9���\:�y[M[�}���>�/�ٔ ��'�SN����� ��e�esxo4� fC�!G�hJ7edB1�N��Qa��-�m_�6�Ͷ����M1 =�q�� �����-�)H���aL��K�8�㄂e�\1�(X��$�8+W���#�[�r��8�i@�g�e�\� �S��Y<���8G&u����aj�V\o��ijಅUk��0u;s �j�k)I����Tef�&%3eVh ueh���1��l-Cm�P�<cʹc�Y,�єh�3��e�%ox�)y�X���* \AaAU%�0#��--5#]�tvǠ����g�eg�9�?����?�~�]�k�w��77>^���_w�%ɑY�����*�.^��./�Qڰl٦��G9]�� ls�a��Eاy 4V=�CzBkO͆�1��;��2aݒ�a�Ӕ�,��~/��6�Lo�봟��_���g�2���X��BZj�&?MH.�mz9��#m�D�O)V%٪lII�4[Rl�
����e�3r3��Z��ܰt�>�0Nĉ�ƒ�E�7U�a��!�D�ӝ�~����[���DH�~i�F�4z��<�+6=�������žDy�����ta̙1ҳ�^��������zU
endstream
endobj
18 0 obj
3793
endobj
19 0 obj
(untitled text 2)
endobj
20 0 obj
(Mac OS X 10.7.5 Quartz PDFContext)
endobj
21 0 obj
(��\000S\000t\000e\000f\000a\000n\000 \000M\000a\000g\000n\000u\000s\000 \000L\000a\000n\000d\000r\000�)
endobj
22 0 obj
()
endobj
23 0 obj
(TextWrangler)
endobj
24 0 obj
(D:20130516220510Z00’00’)
endobj
25 0 obj
()
endobj
26 0 obj
[ () ]
endobj
1 0 obj
<< /Title 19 0 R /Author 21 0 R /Subject 22 0 R /Producer 20 0 R /Creator
23 0 R /CreationDate 24 0 R /ModDate 24 0 R /Keywords 25 0 R /AAPL:Keywords
26 0 R >>
endobj
xref
0 27
0000000000 65535 f
0000013312 00000 n
0000000403 00000 n
0000001868 00000 n
0000000022 00000 n
0000000384 00000 n
0000000507 00000 n
0000001832 00000 n
0000002001 00000 n
0000008616 00000 n
0000000619 00000 n
0000001811 00000 n
0000001951 00000 n
0000002379 00000 n
0000002623 00000 n
0000008595 00000 n
0000008823 00000 n
0000009067 00000 n
0000012950 00000 n
0000012971 00000 n
0000013005 00000 n
0000013057 00000 n
0000013178 00000 n
0000013197 00000 n
0000013228 00000 n
0000013270 00000 n
0000013289 00000 n
trailer
<< /Size 27 /Root 12 0 R /Info 1 0 R /ID [ <46d8c183ee4411913dbbbf9ea832b089>
<46d8c183ee4411913dbbbf9ea832b089> ] >>
startxref
13487
%%EOF

–llf90t4ebaGl0gutR8DiE8IlS1Wr4b–

I’m building from master.

It’s probably just my proxy that is playing me tricks.

What tool did you use to dump the http data?

Stefan

I used Charles.
I simplified your simulation a bit:https://gist.github.com/slandelle/5661352

Actually it works here too - Charles must have played me a trick last night.
Anyways, I’ll try to embed this code into our “production” tests to see if it “really” works as expected.

Glad to hear!

Thanks

It didn’t work in the “production test”, and it took me a while to sort out what is going on.

It appears there is a newline between the boundary and the headers in the parts. It probably got introduced when you removed the Content-Dispositon header.
I’ve been modifying request using charles, and it appears that when this is fixed, everything will work as expected.

Cheers,

Stefan

Output from charles:

–Q13IBqFyDU8vlT2b8hP7XDl1TgqHmq

Content-Type: application/xml; charset=utf-8
Content-Transfer-Encoding: binary

userid : 3 saml : hello
–Q13IBqFyDU8vlT2b8hP7XDl1TgqHmq

Content-Type: application/pdf; charset=utf-8
Content-Transfer-Encoding: binary
Content-ID: somecontentid

%PDF-1.3
<46d8c183ee4411913dbbbf9ea832b089> ] >>

startxref
13487
%%EOF

–Q13IBqFyDU8vlT2b8hP7XDl1TgqHmq–

What the spec requires:

–Q13IBqFyDU8vlT2b8hP7XDl1TgqHmq
Content-Type: application/xml; charset=utf-8
Content-Transfer-Encoding: binary

userid : 3 saml : hello
–Q13IBqFyDU8vlT2b8hP7XDl1TgqHmq
Content-Type: application/pdf; charset=utf-8
Content-Transfer-Encoding: binary
Content-ID: somecontentid

%PDF-1.3
<46d8c183ee4411913dbbbf9ea832b089> ] >>

startxref
13487
%%EOF

–Q13IBqFyDU8vlT2b8hP7XDl1TgqHmq–

Fixed: https://github.com/excilys/gatling/issues/1207

AHC 1.7.17 will be released later today. Until then, I have deployed a snapshot so that you can test (I checked with Charles though, so should be fine).

Just tested this with master. Works like a charm!

We have a somewhat challenging work environment from an Internet connection point of view. Would it be possible for you to release a new milestone for Gatling 2? - then our nexus would be able to fetch it (since it has a firewall opening to the gatling repo …)

Can’t you use the Cloudbees snapshot repo?

Unfortunately not. Due to security restrictions, access to Internet resources is granted on a per domain whitelist and it took me like 3 weeks to get http://repository.excilys.com/content/repositories/releases whitelisted and mirrored by our local nexus....

We’re not ready yet to cut 2.0.0-M3. However, I can deploy a timestamp in our Nexus, probably tomorrow.

Great! Thanks! That will give us a chance to battle test it before m3

Cheers

Stefan

I’ve tagged and deployed a 2.0.0.20130605.
This is not an official release, so it won’t get proper documentation and will be deleted once 2.0.0-M3 is out.

Cheers,

Stéphane