Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Andreas Leitgeb Newsgroups: comp.lang.java.programmer Subject: Re: emulating browser cgi get in java Date: Mon, 30 Mar 2020 06:44:11 -0000 (UTC) Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <19a29456-e113-4ea7-8689-0e91d440a74a@googlegroups.com> <810d0qz89jmy.dlg@kimmeringer.de> Reply-To: avl@logic.at Injection-Date: Mon, 30 Mar 2020 06:44:11 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="ec0c1eda302da1504e514707af35599a"; logging-data="12083"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2VK7kZDM+n/QeSBuEeJRe" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:yGKYMC183eUgNM548h5swCgIWOE= Xref: csiph.com comp.lang.java.programmer:39413 Lothar Kimmeringer wrote: > maxmikes001@gmail.com wrote: >> This should be simple, but it's really foiling me; I can send the browser this command: >> http://192.168.1.66/man.cgi?redirect=&faulure=&type=door_on&securitystate=1 >> and it does exactly what it's supposed to. But in Java when I try: >> URL url = new URL("http:/" + clientid + "/man.cgi?redirect=&faulure=&type=door_on&securitystate=1"); >> it fails. Any hints please? My newsserver didn't even show maxmikes' post. I was curious, and looked it up on groups.google.com, and there I saw it from March 12th, answered the very next day by Silvio, and his answer seemed pretty plausible. Since no one seems to have seen the answer (maybe except the OP, as he didn't come back), this was it: "A missing slash in there somewhere?"