🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1860

URL & URLConnection: how to send a GET message?

#1860
From: Jonathan Sachs
Date: Tue, 28 Aug 2001 17:39
16 lines
1936 bytes
I'm trying to write an HTTP client application and I don't understand
something about how the HTTP support in the JDK is meant to be used.

It appears to me that all of the JDK's support for HTTP is in the URL
and URLConnection classes. However, it also appears that URLConnection
only sends data through the POST message. (Actually I found a method
for selecting other message types, but it's protected.)

If I need to send a GET message, how do I do it?

I wondered if the class library designers simply chose to implement
POST and ignore GET, but that doesn't make sense. METHOD=POST or GET
is one of the basic parameters of <FORM>. If <FORM> says METHOD=GET,
the client had better be able to do a GET!

Send email to jsachs177 at earthlink dot net.
Technical Details
Message-ID: <bklnot4l8lti78c9cbj8cojchfgb4btg7b@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4006bdfff386f55c,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-08-28 10:39:22 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
From: Jonathan Sachs <nobody@nospam.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: URL & URLConnection: how to send a GET message?
Organization: Sand River Software, Inc.
Reply-To: See@Message.Text
Message-ID: <bklnot4l8lti78c9cbj8cojchfgb4btg7b@4ax.com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 16
Date: Tue, 28 Aug 2001 17:39:04 GMT
NNTP-Posting-Host: 66.1.132.83
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 999020344 66.1.132.83 (Tue, 28 Aug 2001 10:39:04 PDT)
NNTP-Posting-Date: Tue, 28 Aug 2001 10:39:04 PDT
X-Received-Date: Tue, 28 Aug 2001 10:36:17 PDT (newsmaster1.prod.itd.earthlink.net)