http bug

D

Daniel Pitts

Lothar said:
As I said: "The last time I checked" It's been quite a while
now, deciding to use HttpUrlConnection instead for implementing
my AS2-Connector. The code I posted was taken from another
application developed by a coworker. Since my decision I never
came back to the point of reconsideration because all the
features of HttpClient I in general don't need.


Regards, Lothar
If the code you posted came from a coworker, might it be possible that
they didn't understand the concept of polymorphic types, and *could*
have used a common base class?
 
A

Arne Vajhøj

As I said: "The last time I checked" It's been quite a while
now, deciding to use HttpUrlConnection instead for implementing
my AS2-Connector. The code I posted was taken from another
application developed by a coworker. Since my decision I never
came back to the point of reconsideration because all the
features of HttpClient I in general don't need.

The API is simpler than (Http)URLConnection, so even if
you don't need all the features, then it can be beneficial
to use.

Arne
 
A

Arne Vajhøj

He was not explicit. If you know that GetMethod and PostMethod are
unique to Apache, you could infer that. But Lothar did not state it
explicitly. The audience is wider than those who post. It always
helps to make things abundantly clear.

The post Lothar quoted in his post said:
and usually go with apache commons HttpClient

That is very explicit.

Arne
 
R

Roedy Green

Lothar wasn't explicit, but Arne didn't say it was Lothar. Daniel was
explicit, in the post to which Lothar responded.

This reminds me of the standard response I get when I write to an
author words to this effect.

On page 99 of your manual, you say "xxxx". This could be interpreted
to mean either "yyyy" or "zzzz". I suggest rewording it as "aaaaa" to
make it clear that you meant "zzzz".

They respond I meant "zzzz". This is perfectly clear to any
(German-speaking) person. If you, as a rank novice, have further
trouble understanding my program, please don't hesitate to ask.
--
Roedy Green Canadian Mind Products
http://mindprod.com
GØD is REAL untess declared INTEGER.
~ Anonymous

In FØRTRAN, variables beginning I..N are implicitly INTEGER, the rest REAL.
 
L

Lew

Roedy said:
This reminds me of the standard response I get when I write to an
author words to this effect.

On page 99 of your manual, you say "xxxx". This could be interpreted
to mean either "yyyy" or "zzzz". I suggest rewording it as "aaaaa" to
make it clear that you meant "zzzz".

They respond I meant "zzzz". This is perfectly clear to any
(German-speaking) person. If you, as a rank novice, have further
trouble understanding my program, please don't hesitate to ask.

That is completely dissimilar. That example is the authors trying to duck
responsibility. This thread has people who read the same thing you did, like
you without benefit of reading the authors' minds, and yet still understood
it. In other words, people in your exact same position who saw the obvious.
 
A

Arne Vajhøj

This reminds me of the standard response I get when I write to an
author words to this effect.

On page 99 of your manual, you say "xxxx". This could be interpreted
to mean either "yyyy" or "zzzz". I suggest rewording it as "aaaaa" to
make it clear that you meant "zzzz".

They respond I meant "zzzz". This is perfectly clear to any
(German-speaking) person. If you, as a rank novice, have further
trouble understanding my program, please don't hesitate to ask.

You replied to a post with the content:

#Daniel Pitts wrote:
#> I often find the standard HttpUrlConnection lacking, and usually go with
#> apache commons HttpClient instead. You have more control of the
#> process, if you care, but it also "works" out-of-the-box if you don't
#> want to configure it as much.
#The last time I checked, GetMethod and PostMethod were two
#classes sharing a lot of methods but not a common superclass.

with a question:

#Are you complaining about Sun or Apache?

Are you saying that it requires readers to be german speaking
to figure out that "apache commons HttpClient" is Apache and
not SUN ????

Arne
 
L

Lothar Kimmeringer

Arne said:
The API is simpler than (Http)URLConnection, so even if
you don't need all the features, then it can be beneficial
to use.

Personally I don't see much difference in complexity. The
advantage of HttpClient is the better support for Cookies
and the handling of HTTP-sessions. But if you just want to
perform a single HTTP-request (GET or POST) you more or less
end up with the same code.

The advantage of using HttpUrlConnection is that there are
a lot more examples covering topics like accessing HTTPS-
servers that use "untrusted" certficates or requiring a
client-certificate. As soon as you have this topic handling
XML-files that need to load DTDs/XSDs that way you have to
cope with HttpUrlConnection-APIs anyway, even when using
Apache-classes doing the XML-parsing.

The decistion pro HttpUrlConnection and contra HttpClient I
finally made more than five years ago. Things might have
changed for HttpClient since then (and most likely the API
to be used, requiring significant changes in the code), but
my code works (and is officially certified), so I most likely
will not change it.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
 
R

Roedy Green

#Are you complaining about Sun or Apache?

Are you saying that it requires readers to be german speaking
to figure out that "apache commons HttpClient" is Apache and
not SUN ????

It is possible nearly always to research questions for oneself. I am
more familiar with this stuff than most people since I have published
code that uses the various Sun classes and written an essay on it. I
am just asking the author to clarify himself as a courtesy to readers
for whom the answer to that question is not obvious.

Think of this as like a Q&A session in front of a mixed audience. It
is common for people in the audience to ask questions on BEHALF of the
newbies in the audience. To the lecturer, all of it is so TOTALLY
obvious, it is hard to put himself in the shoes of the newbie.

Must you make such an issue of every triviality.
 
A

Arne Vajhøj

[start restore context]
You replied to a post with the content:

#Daniel Pitts wrote:
#> I often find the standard HttpUrlConnection lacking, and usually go with
#> apache commons HttpClient instead. You have more control of the
#> process, if you care, but it also "works" out-of-the-box if you don't
#> want to configure it as much.
#The last time I checked, GetMethod and PostMethod were two
#classes sharing a lot of methods but not a common superclass.

with a question:
[end restore context]
#Are you complaining about Sun or Apache?

Are you saying that it requires readers to be german speaking
to figure out that "apache commons HttpClient" is Apache and
not SUN ????

It is possible nearly always to research questions for oneself. I am
more familiar with this stuff than most people since I have published
code that uses the various Sun classes and written an essay on it. I
am just asking the author to clarify himself as a courtesy to readers
for whom the answer to that question is not obvious.

I think all readers here are perfectly capable
of reading "apache commons HttpClient" and figuring
out that it must be Apache without your intended helpful
questions.

Arne
 
R

Roedy Green

Are you saying that it requires readers to be german speaking
to figure out that "apache commons HttpClient" is Apache and
not SUN ????

I going to have to plonk you again. This is just too stupid to waste
ink over.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top