Forum Discussion

jasmeet13's avatar
jasmeet13
New Contributor
5 years ago
Solved

Missing Transport Exception

I'm using the command below using POST method:

I have created a test case with an HTTP Request step. 

 

Please suggest what could possibly be wrong here.

 

curl -d "upgradedisable=yes&format=xml" http://192.168.63.173/upgradeoverride "

 

 

  • Hello everyone,

     

    I had been on a long break, hence I couldn't reply back to the thread.

    Thank richie & nmrao for your valuable suggestions.

    I got what I wanted using command prompt within the windows 10.

     

4 Replies

  • richie's avatar
    richie
    Community Hero
    Hi jasmeet13

    Why are you trying to use curl here?

    Curl is a bunch of libraries that support publishing messages via commandline....similar to wget.

    So curl syntax is something like:

    curl [options ]URL

    so in the request bar where you have your curl request, you need to replace this with the protocol://ip address/templateParameters?queryParameters

    I cant tell you what parameters you should have in your request nor the content of the request payload if your request has one (POST method supports injecting a payload, but its not mandatory). However when i have used curl before the options on my request equated to http header parameters. Further evidence of this is your format=xml option. On a REST request i would represent this by populating the 'Mediatype' dropdown with 'application/xml' which when the request is submitted generates a 'Content-Type' http header specifying the datatype of xml.

    You definitely dont need to use curl in the address of your request, but i dont know what the requirements for your URI string is....you need to check the requirements to determine what the requests full URL is, along with required header parameters and the payload if you have one.

    To provide a bit of clarity (i know the above text is a bit confusing).

    After youve submitted your request if you check the RAW tab of your request i would expect the first line in the request to look similar to the following:

    POST http://192.168.63.173/upgradeoverride HTTP 1.1

    Hope this helps,

    Rich
  • nmrao's avatar
    nmrao
    Champion Level 3

    Do you have a wadl file or swagger definition? Then it would be more easy to send GET or POST methods.

     

    Any ways, use endpoint as

    http://192.168.63.173/upgradeoverride

     

    And post the payload under Request tab.

     

    If you still have questions, please go thru documentation

    https://www.soapui.org/rest-testing/getting-started.html

     

    Alternatively you can use command prompt/terminal to send the curl requests (provided curl is installed on your machine). In this case, SoapUI / ReadyAPI is not required.

  • sonya_m's avatar
    sonya_m
    SmartBear Alumni (Retired)

    Thanks for awesome suggestions everyone!:smileyhappy:

     

    Hi jasmeet13! Were the pieces of advice from the Community helpful?

     

     

    • jasmeet13's avatar
      jasmeet13
      New Contributor

      Hello everyone,

       

      I had been on a long break, hence I couldn't reply back to the thread.

      Thank richie & nmrao for your valuable suggestions.

      I got what I wanted using command prompt within the windows 10.