Forum Discussion

jacklund's avatar
13 years ago

Putting spaces in URL for SoapUI

I'm attempting to test a REST interface, and I need to embed spaces in my URL. I'm using SoapUI 4.5.0, but I can't seem to figure out how to put spaces in the URL. If I specify the Resource with spaces in it (e.g. "/api/Foo Bar"), when I run it, it does a request for "/", i.e., it basically empties the URL and tries to get the root (I've verified this behavior using WireShark). If I put the URL encoding in myself (e.g., "/api/Foo%20Bar"), it url-encodes the whole thing, so I end up with "/api/Foo%2520Bar" being requested, which is also not what I want. How do I tell SoapUI to accept a space and url encode it, like it should?

Very frustrated.

-Jack Lund
  • I'm running into the same problem and a Google of the subject has so far yielded no answers. Using a space in the URL is absolutely necessary, the construction of the requests themselves is not in my hands. Substituting with a '+' character is not a solution, can't force URL encoding (%20), leaving as spaces breaks the request. Also quite frustrated, not sure what my options are but I believe this is crucial functionality.

    - Alec Sullivan
  • andrew_laser's avatar
    andrew_laser
    Occasional Contributor
    Got the same issue.
    soapUI chops the request
    Replacing spaces with '+' is not suitable for my service.
    If put %20 explicitly soapUI replaces it with %2025.
    Does anybody have a solution?

    BTW, I'm using 4.5.1
  • D1R3W0LF's avatar
    D1R3W0LF
    New Contributor
    I'm using SoapUI 3.6.1 & It works fine.
    As expected, it replaces the space with %20 and gives me the response for the REST request.

    --
    D!R3w0LF