🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #592

Jak applet moze wyslac dane do CGI scripta metoda POST

#592
From: Adam Wojciechowski
Date: Fri, 16 May 1997 00:44
23 lines
1417 bytes
  Prosze o wyjasnienie w jaki sposob mozna z poziomu appleta wysylac
do CGI scripta dane metoda POST. 

  W ksiazce Special Edition Using Java znalazlem nastepujacy przyklad:

URL reverseURL = new URL("http://www.javasoft.com/cgi-bin/backwards");
URLConnection reverseConn = reverseURL.OpenConnection();

PrintStream output = new PrintStream(reverseConn.getOutputStream());
DataInputStream input = new
DataInputStream(reverseConn.getInputStream());

output.println("string=TextToReverse");
String reversedText = input.readLine();

  Byc moze, ze popelniam jakies bledy, o ktorych nie wiem, ale nie
chce mi to dzialac. Jesli ktos z Panstwa zna rozwiazanie tego problemu
to prosze o kilka wskazowek i jesli to mozliwe proste przyklady
ilustrujace ten mechanizm. 

    				Z gory dziekuje i pozdrawiam

						  Adam
Technical Details
Message-ID: <5lflih$kts$1@math.amu.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!ict.pwr.wroc.pl!pwr.wroc.pl!math.amu.edu.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!ict.pwr.wroc.pl!pwr.wroc.pl!math.amu.edu.pl!not-for-mail
From: adam@cs.put.poznan.pl (Adam Wojciechowski)
Newsgroups: pl.comp.lang.java
Subject: Jak applet moze wyslac dane do CGI scripta metoda POST
Date: Fri, 16 May 1997 00:44:25 GMT
Organization: Adam Mickiewicz University
Lines: 24
Message-ID: <5lflih$kts$1@math.amu.edu.pl>
NNTP-Posting-Host: caelum.cs.put.poznan.pl
X-Newsreader: Forte Free Agent 1.0.82
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit