Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23127
| X-Received | by 10.224.185.79 with SMTP id cn15mr8804365qab.4.1364298367720; Tue, 26 Mar 2013 04:46:07 -0700 (PDT) |
|---|---|
| X-Received | by 10.49.5.129 with SMTP id s1mr927610qes.39.1364298367637; Tue, 26 Mar 2013 04:46:07 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!t2no17309080qal.0!news-out.google.com!k8ni11100qas.0!nntp.google.com!ca1no7834143qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Tue, 26 Mar 2013 04:46:07 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=68.56.123.172; posting-account=-VTU1AoAAAAj8_Yg-fSOSMK2kXzWy-EX |
| NNTP-Posting-Host | 68.56.123.172 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <c3c53dbd-b60d-4a93-95ea-d6bf653037aa@googlegroups.com> (permalink) |
| Subject | POST to secure server |
| From | RVic <rvince99@hotmail.com> |
| Injection-Date | Tue, 26 Mar 2013 11:46:07 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.lang.java.programmer:23127 |
Show key headers only | View raw
I have an application that must run in windows which must post to a servlet running on a secure server. I can WinSCP into that server, and I can use PuTTY to ssh into that server. But I am quite clueless how I can post to a servlet there? Is there something I can pass in posting, or something I do with my URLConnection or URL variable to allow me access as I get with WinSCP or PuTTY? Thank you.
URL postURL = new URL(servletURL);
HttpURLConnection conn = (HttpURLConnection) postURL.openConnection();
conn.setRequestMethod("POST");
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
conn.connect();
StringBuilder sb = new StringBuilder();
sb.append(vtkey+"="+ paramval);
out.write(sb.toString());
out.flush();
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
POST to secure server RVic <rvince99@hotmail.com> - 2013-03-26 04:46 -0700
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-26 13:43 +0000
Re: POST to secure server markspace <markspace@nospam.nospam> - 2013-03-26 09:51 -0700
Re: POST to secure server Roedy Green <see_website@mindprod.com.invalid> - 2013-03-26 19:00 -0700
Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 05:34 -0700
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-27 13:07 +0000
Re: POST to secure server Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-27 20:11 -0300
Re: POST to secure server markspace <markspace@nospam.nospam> - 2013-03-27 19:38 -0700
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 08:49 +0000
Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-28 10:17 +0100
Re: POST to secure server Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-28 06:19 -0300
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 09:54 +0000
Re: POST to secure server Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-03-28 20:51 -0300
Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 06:24 -0700
Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-27 14:37 +0100
Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 06:45 -0700
Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-27 15:08 +0100
Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 08:39 -0700
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-27 17:30 +0000
Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-27 13:26 -0700
Re: POST to secure server Silvio <silvio@internet.com> - 2013-03-28 10:05 +0100
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 10:34 +0000
Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-03-28 05:02 -0700
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-03-28 12:22 +0000
Re: POST to secure server RVic <rvince99@hotmail.com> - 2013-04-02 07:07 -0700
Re: POST to secure server Silvio <silvio@internet.com> - 2013-04-02 22:39 +0200
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-03 10:39 +0100
Re: POST to secure server Joerg Meier <joergmmeier@arcor.de> - 2013-04-03 15:32 +0200
Re: POST to secure server lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-04-03 15:34 +0100
csiph-web