webta.st.ic
webta.st.ic

Reputation: 5179

Space in URL parameter

How can I give a space (I marked the space with a underline in the url) as character in a URL paramter? Such like this:

127.0.0.1:9000/test?param1=AfterThisThereIsSpace_&param2=HereNot

Thanks and cheers.

Upvotes: 0

Views: 70

Answers (1)

f-society
f-society

Reputation: 3018

you need to encode those blank spaces with escaped hexadecimal equivalents, in your case,

 127.0.0.1:9000/test?param1=AfterThisThereIsSpace%20&param2=HereNot

Here blank space is equivalent to “%20”.

Upvotes: 1

Related Questions