Forum Discussion

max1965's avatar
max1965
Contributor
13 years ago

HTTR request sent twice

When I sent post http request from my soapui testsuite, the request is sent twice: the first time as a post http request, the second time as a get http request.

There is some configuration parameters to be correctly set ?

I am using SoapUi 4.5.1.

6 Replies

  • Interesting! I've got the same problem. Can you explain what was the problem and how you fixed it ?
  • I also see this problem. I use GET on my REST service, and the request is made twice. I'm guessing that the first request is used, since the second one errors. Since this was as error with SOAPUI in the past, I'm guessing that it still is.
  • JacobDavenport,

    Personally I have never seen this, but it is of course possible that this is a bug triggered by something in your project or configuration. Could you give us some more info about what you're trying to do?

    Kind regards,
    Manne Fagerlind
    SmartBear Stockholm
  • Manne,

    I'm not sure what information would be useful. I'm running REST requests exclusively. For example, I ran a single POST test step, and my Tomcat log shows:

    127.0.0.1 - - [11/Oct/2013:09:53:13 -0400] "GET / HTTP/1.1" 404 955
    127.0.0.1 - - [11/Oct/2013:09:53:38 -0400] "POST /authentication/rest/authentication/validate HTTP/1.1" 200 9986

    I'm not sure why it runs this extra GET first. Later on I ran another POST request, and this time it ran the extra GET request second:

    127.0.0.1 - - [11/Oct/2013:10:06:04 -0400] "POST /file/rest/file HTTP/1.1" 200 1967
    127.0.0.1 - - [11/Oct/2013:10:06:04 -0400] "GET /file/rest/file HTTP/1.1" 401 954

    It doesn't interfere with my testing, but I don't know why SOAPUI is running them.

    -Jacob
  • Do you, by any chance, have the following preference checked:
    File > Preferences > HTTP Settings tab > Authenticate Preemptively ?

    Thanks,
    Michael Giller
    SmartBear Software