Forum Discussion

ymkocv's avatar
ymkocv
Occasional Contributor
5 years ago

Request is sent to another URL, how to handle cookies for this redirection?

Hi,

 

using Soap UI 5.5 I have endpoint + resourse, but when sending the request, the RAW information shows totally different URL

As I see from the log, there is redirection and another URL needs cookie received from the first call. How to handle such requests? Now I've got  http 403

Tested the same in Postman - request is sent correct and has http 200

9 Replies

  • Lucian's avatar
    Lucian
    Community Hero

    Afaik, SoapUI doesn't know how to handle cookies when there are multiple hosts involved. Another possibility would be to disable automatic redirects for this request and handle the cookies yourself (extract the set cookie value and then use it in the subsequent requests).

    • ymkocv's avatar
      ymkocv
      Occasional Contributor

      Thank you, Lucian!

      How can I disable automatic redirects? I haven't found any setting for that. Thanks!

      • Lucian's avatar
        Lucian
        Community Hero

        You can click on the http request and then you'll have a little space with some settings on the bottom of the screen (see the picture below)