antlibs / ant-http

A fork of missing link Ant HTTP task at Google Code
https://code.google.com/archive/p/missing-link/
Apache License 2.0
7 stars 3 forks source link

Does not work with paths which include encoded characters #36

Closed twogee closed 7 years ago

twogee commented 9 years ago

Issue by GoogleCodeExporter Monday May 11, 2015 at 22:05 GMT Originally opened as https://github.com/twogee/missing-link/issues/36


What steps will reproduce the problem?
1. Enter URL which contains spaces i.e. 
http://example.com/some%20path/index.html
2. Run the task

What is the expected output? What do you see instead?
Expected HTTP 200 response but receive HTTP 404 response

What version of the product are you using? On what operating system?
1.1.3

Please provide any additional information below.

org.missinglink.http.client.HttpClient
596: httpClient.path = safeUri.getPath();

URI.getPath() decodes its return value. Some options are to use getRawPath() or 
re-encode the full URI before it is called.

Original issue reported on code.google.com by kasey.fr...@gmail.com on 12 Jun 2013 at 10:43