rajtrivedi2001 / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Underscore not accepted in URL #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Place any URL with an underscore (_) in the host part.
2. Press Go!

What is the expected output? What do you see instead?
Process should complete as normal.  Error: 
Host name may not be null
java.lang.IllegalArgumentException: Host name may not be null
    at org.apache.http.HttpHost.<init>(HttpHost.java:83)
    at org.apache.http.impl.client.AbstractHttpClient.determineTarget
(AbstractHttpClient.java:497)
    at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:487)
    at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:465)
    at org.wiztools.restclient.HTTPRequestThread.run
(HTTPRequestThread.java:218)

What version of the product are you using? On what operating system?
v2.2 on Windows XP SP3 w/ JRE 1.6.0_02

Original issue reported on code.google.com by robert...@gmail.com on 15 Dec 2008 at 9:33

GoogleCodeExporter commented 8 years ago
I think _ is not a valid character supported by Apache HTTP Client (which 
RESTClient
internally uses). I think this has to be raised as a bug in that project.

Original comment by subwiz on 16 Dec 2008 at 6:26

GoogleCodeExporter commented 8 years ago
Thanks.  I will check there.

Original comment by robert...@gmail.com on 16 Dec 2008 at 6:43

GoogleCodeExporter commented 8 years ago
Actually, _ is not a valid hostname character:

http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names

But Windows servers don't conform to this restriction. So this should be raised 
as a
bug at Microsoft ;-)

Closing this issue as (we cannot address MS's irresponsibility :-) ).

Original comment by subwiz on 24 Dec 2008 at 11:48