AditiS06 commented on issue #5897:
URL: https://github.com/apache/jmeter/issues/5897#issuecomment-1547711664

   Hi Abhijot,
   
   I have tried this dummy post call:
   http://httpbin.org/post
   using file upload with the below dummy data:
   {
   "id": xxx,
   "language": "xxxx",
   "price": xxx,
   }
   And I could reproduce the issue with JMeter 5.5.
   Hope this helps.
   
   Thanks and Regards,
   Aditi Sonawane
   
   On Fri, May 12, 2023 at 11:14 AM aditi sonawane ***@***.***>
   wrote:
   
   > Hi Abhijot,
   >
   > As requested, I have tried making changes to jmeter.properties file as
   > below:
   > [image: image.png]
   >
   > Scenario 1:  MIME TYPEis set as "application/json" in Files Upload tab -
   > [image: image.png]
   > [image: image.png]
   > Header Manager has content-type set to - application json.
   > [image: image.png]
   > Scenario 2:   MIME TYPEis set as "application/json" in Files Upload tab
   > same as above.
   > In header manager, content-type is not set explicitly. i.e. the row
   > content-type set to application/json is not available in header manager.
   >
   > In both cases, the Request headers tab shows content-type as
   > multipart/form-data.
   > [image: image.png]
   > where as, Request Body hascontent-type set to application/json.
   > [image: image.png]
   > I shall see if I can share the .jmx file with a sample request with which
   > I can reproduce the scenario.
   >
   > Thanks and Regards,
   > Aditi Sonawane
   >
   >
   > On Thu, May 11, 2023 at 6:07 PM Abhijot ***@***.***> wrote:
   >
   >> Try this modification in jmeter.properties file:
   >>
   >>    - uncomment line 359 and line 361
   >>    - set 361 true
   >>    - Also try disabling headerManager, if the value on content Type is
   >>    already added to File Upload tab
   >>    [image: image]
   >>    
<https://user-images.githubusercontent.com/66517017/237686421-866d5ba5-e3b4-4ad1-a060-ca43ad2d5dd5.png>
   >>
   >> Result Tree shows content-Type that was set in File Upload Tab(so it did
   >> not used multipart, and read the value from http Request).
   >> So, it may work, As I also didn't saw 2 content Type fields in Request
   >> Body, after making above change.
   >>
   >> Let me know if it works?
   >> Till then I will test further to confirm accuracy.
   >>
   >> —
   >> Reply to this email directly, view it on GitHub
   >> <https://github.com/apache/jmeter/issues/5897#issuecomment-1543921945>,
   >> or unsubscribe
   >> 
<https://github.com/notifications/unsubscribe-auth/ALDQVUIDMFTP2CG5ONRUF3LXFTMRVANCNFSM6AAAAAAXZXF5KM>
   >> .
   >> You are receiving this because you were mentioned.Message ID:
   >> ***@***.***>
   >>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to