Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39411

Re: emulating browser cgi get in java

From Martin Gregorie <martin@mydomain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: emulating browser cgi get in java
Date 2020-03-29 17:30 +0000
Organization A noiseless patient Spider
Message-ID <r5qlvb$1re$1@dont-email.me> (permalink)
References <19a29456-e113-4ea7-8689-0e91d440a74a@googlegroups.com> <810d0qz89jmy.dlg@kimmeringer.de> <r5oevo$loj$1@dont-email.me> <1m76opf8rcm1w$.dlg@kimmeringer.de>

Show all headers | View raw


On Sun, 29 Mar 2020 16:37:09 +0200, Lothar Kimmeringer wrote:

> Martin Gregorie wrote:
> 
>> On Sat, 28 Mar 2020 20:03:02 +0100, Lothar Kimmeringer wrote:
>> 
>>> maxmikes001@gmail.com wrote:
>>>>
>>>> http://192.168.1.66/man.cgi?
> [...]
>>> 
>> Better yet, post an SSCCE that demonstrates the problem:
> 
> How should that help if the problem is an interop-problem and the server
> in question is in a private network?
>
Don't get me wrong, but since you haven't said where the problem is, only 
showed us a code fragment that apparently doesn't work, its possible that 
you haven't yet localised the problem. Producing an SSCCE will help to do 
that. 

So approaches:

(a) Have you confirmed that 'clientid' contains what you think it does?

(b) An SSCE which accepts 'clientid' as a command line argument and 
displays the assembled URL parameter before creating the new URL instance 
will let you see the effect of changing 'clientid' contents and whether 
the URL it assembled is valid. Both will go some way to showing where the 
problem actually is. Creating the URL can throw an Exception, so your SSCE 
*must* catch it and display its content. 

The above are a couple of the hints you asked for. 


-- 
Martin    | martin at
Gregorie  | gregorie dot org

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: emulating browser cgi get in java Lothar Kimmeringer <news201705@kimmeringer.de> - 2020-03-28 20:03 +0100
  Re: emulating browser cgi get in java Martin Gregorie <martin@mydomain.invalid> - 2020-03-28 21:18 +0000
    Re: emulating browser cgi get in java Lothar Kimmeringer <news201705@kimmeringer.de> - 2020-03-29 16:37 +0200
      Re: emulating browser cgi get in java Martin Gregorie <martin@mydomain.invalid> - 2020-03-29 17:30 +0000
        Re: emulating browser cgi get in java Lothar Kimmeringer <news201705@kimmeringer.de> - 2020-03-29 20:28 +0200
  Re: emulating browser cgi get in java Andreas Leitgeb <avl@logic.at> - 2020-03-30 06:44 +0000
    Re: emulating browser cgi get in java Martin Gregorie <martin@mydomain.invalid> - 2020-03-30 07:08 +0000

csiph-web