Forum Discussion

jkrier's avatar
jkrier
Regular Contributor
11 years ago

Send HTTP request without appending the end point

I have a HTTP request I would like to add to a load test. It is like this
https://myhostname.net/internalservice-myhostnamestatus/v1/services/applicationstatus
When i run this in SoapUI i get a 404 response. If I simply load this into a browser it works just fine.

It looks like SoapUI is actually sending
https://myhostname.net/internalservice-myhostnamestatus/v1/services/applicationstatus HTTP/1.1


Is there a way to submit the request without appending it with HTTP/1.1

8 Replies

  • Hi,

    Where do you see HTTP 1.1. appended by SoapUI Pro? Please check the error log tab to see if any errors are occurring when trying to connect. Are you using a REST test step or HTTP test step?



    Regards,
    Marcus
    SmartBear Support
  • jkrier's avatar
    jkrier
    Regular Contributor
    I see it in the Raw tab and in the SoapUI log. The error log tab is empty.

    The end point I used to configure the project is in the format as I stated above.
    https://myhostname.net/internalservice-myhostnamestatus/v1/services/applicationstatus
    The Raw tab for the Request shows
    GET https://myhostname.net/internalservice- ... tionstatus HTTP/1.1
    Connection: close
    Accept-Encoding: gzip,deflate
    Host: facade-provisioning-volubill.test.wdc1.wildblue.net
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

    Also, the SoapUI log shows
    Mon Jan 26 17:12:47 MST 2015:DEBUG:Attempt 1 to execute request
    Mon Jan 26 17:12:47 MST 2015:DEBUG:Sending request: GET /internalservice-myhostnamestatus/v1/services/applicationstatus HTTP/1.1
    Mon Jan 26 17:12:47 MST 2015:DEBUG:Receiving response: HTTP/1.1 404 Not Found
    Mon Jan 26 17:12:47 MST 2015:DEBUG:Connection shut down
    Mon Jan 26 17:12:47 MST 2015:INFO:Got response for [HTTP Test Request] in 60ms (0 bytes)
  • jkrier's avatar
    jkrier
    Regular Contributor
    I also see the following in the http log.
    Mon Jan 26 17:21:15 MST 2015:DEBUG:>> "GET /internalservice-myhostnamestatus/v1/services/applicationstatus HTTP/1.1[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:>> "Connection: close[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:>> "Host: https://myhostname.net[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:>> "[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:<< "HTTP/1.1 404 Not Found[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:<< "Server: Web Services[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:<< "Content-Length: 0[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:<< "Date: Tue, 27 Jan 2015 00:21:15 GMT[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:<< "Connection: close[\r][\n]"
    Mon Jan 26 17:21:15 MST 2015:DEBUG:<< "[\r][\n]"
  • jkrier's avatar
    jkrier
    Regular Contributor
    It looks like SoapUI adds this to all end points, not just on HTTP requests and that's how it is logging traffic. So I guess my question is, why does SoapUI return 404 but, when I paste the endpoint into a browser it returns just fine?
  • nmrao's avatar
    nmrao
    Community Hero
    Are you using GET method when doing the same in Browser or you send it over POST? what happens when you do the same in browser i mean do you expect any response back or not?
  • jkrier's avatar
    jkrier
    Regular Contributor
    In a browser all I have to do is paste the end point and hit enter and the message is returned. In SoapUI I am building an empty project with a TestSuite,TestCase,TestStep (HTTP Request). I add the endpoint and the Method as GET but all I get is 404 Not Found.
  • nmrao's avatar
    nmrao
    Community Hero
    Sorry, your reply did not answer, check what is the method choosen while hitting the request in the browser.
    Are you using GET method when doing the same in Browser or you send it over POST?
    • jkrier's avatar
      jkrier
      Regular Contributor

      I figured out what is happening. When adding the HTTP request to the test case SoapUI is making the end point all lower case regardless of what case is supplied. After the test step is created you have to go into the properties tab of the request itself and add the end point back in using the correct case. Also, in the URL window of the the test step itself, SoapUI will not allow upper case values. No matter what is typed everything is turned into lower case. I've taken screen shots but I do not see where/how to add attachments in this new format.

       

      Is this a known issue? Are there plans to fix this in the next release?