1

I am performing a POST call in Rest Assured, after a GET (with Basic Authorization, which is pre-req for all my web service calls). This POST call yields a 302 instead of 201.

Note: I have tried the solution mentioned below, but to no avail: get-the-url-of-a-redirect-with-rest-assured

Vidhya
  • 79
  • 2
  • 6
  • Read through this link - http://biercoff.com/why-rest-assured-doesnt-redirect-post-requests/ – Wilfred Clement Jul 26 '21 at 22:58
  • 1
    Hi @WilfredClement, thanks for the link. I had checked it out earlier, but I could not find some methods like mergeCookies, parseParamsFromUrl, addCookies (in repsonse), ACCPET in addHeaders.. all these throw error in eclipse. I am on rest assured 4.4.0. – Vidhya Jul 27 '21 at 04:27
  • Yes, those methods are not shown in the above page. – MansoorShaikh Mar 14 '22 at 15:28

0 Answers0