🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.www.server-side
Article #61421

Absolutne podstawy komunikacji

#61421
From: horodyski.marek
Date: Wed, 29 Aug 2012 18:17
33 lines
2459 bytes
Dzień dobry wieczór,

Nie wiem gdzie szukać, może tu coś się dowiem.
Do tej pory wysyłałem formularz do serwera ajaxem. Zwrotkę odbierałem i umieszczałem w divie.
Ale widzę, że chyba można by chyba coś uprościć, gdyż w formularzu można umieścić SUBMIT. Spróbowałem :

<form name="ankieta" action="CZYTAJANKIETE" method="post" enctype="text/plain" target="_blank">
...
<input type="submit" name="wyslij" value="Wyslij ankietę" />


Formularz jest wysyłany, dociera do serwera. Czytaj ankietę się uruchamia itd.
Ale co powinno się zwrócić do przeglądarki ?
Serwer nie należy do typowych, stąd pytanie. Cokolwiek w ten sposób zwrócę, Chrome pokazuje to na nowej karcie. 
Przykładowy zwrot z nagłówkiem http:

HTTP/1.1 200 OK
X-Powered-By: MinGW GNU C 4.6.1 (32-bit)/Harbour 3.2.0dev (Rev. 17934)
Cache-Control: no-cache
Server: /NOWEPROD/EXE/homar.exe
Content-Type: text/html
Connection: Keep-Alive
Keep-Alive: timeout=14
Date: Wed, 29 Aug 2012 19:39:52 GMT
Content-Length: 6

MamCie

Ale zamiast "mamcie" podstawiam treść strony i tak rezultat podobny. Co zwrócić ?
I gdzie można znaleźć coś, jak by można po polsku, na temat podstaw komunikacji protokołu http ( wejscie - mozliwe odpowiedzi).

Pozdrawiam,
Marek Horodyski
Technical Details
Message-ID: <663d1119-9e93-4f9f-83d6-3ada98f7545e@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!r1no3465346qas.0!news-out.google.com!da15ni59655611qab.0!nntp.google.com!r1no3465345qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Received: by 10.224.181.75 with SMTP id bx11mr1759119qab.7.1346264225748;        Wed, 29 Aug 2012 11:17:05 -0700 (PDT)
Received: by 10.52.99.8 with SMTP id em8mr446652vdb.16.1346264225727; Wed, 29 Aug 2012 11:17:05 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!r1no3465346qas.0!news-out.google.com!da15ni59655611qab.0!nntp.google.com!r1no3465345qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.www.server-side
Date: Wed, 29 Aug 2012 11:17:05 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.109.244.28; posting-account=sDFNrgkAAACp40-iOidbLuf5KVASzvBM
NNTP-Posting-Host: 193.109.244.28
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <663d1119-9e93-4f9f-83d6-3ada98f7545e@googlegroups.com>
Subject: Absolutne podstawy komunikacji
From: horodyski.marek@gmail.com
Injection-Date: Wed, 29 Aug 2012 18:17:05 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit