[Xitami] Xitami and basic

Marc Doigny xitami@lists.xitami.org
Sun, 02 Dec 2001 12:34:22 +0100


This is a multi-part message in MIME format.

--=====================_508377870==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hello from Belgium

Thank you all for your replies (to the list and to me personally).
I will definitely try power basic from powerbasic.com (the console version) 
since i don't need an interface when sending html output to another 
computer. _visual_ basic is too much for me.


I will define my problem more specifically:
The company i work for has an internet printer (Remote Internet Printing). 
It reads it's mail via pop-3 like an ordinary mail client and prints it 
out. It works perfectly for text documents.

The printer can also print postscript files, but it can't handle mime. A 
postcript file attached to a message is mime-encoded, but the printer can't 
decode it (and there is no upgrade). Printing postcript to the LAN printer 
is OK (windows file and printer sharing).


So i want to get the postcript file from the remote user using http
Once the file is on the server computer i can do anything to adapt the 
message to the printer standards and send it without mime to the printer 
mailbox.

I tried following html to send a sample file
<html><body>

    <form ACTION="/cgi-bin/env.exe" method="POST">
       <input type=file name="123.txt"><br>
       <input type=submit value="Send">
    </form>

</body></html>

env.exe simply sends the environment and other input files back to the browser.

What i get on the server is the name of the file, but not the content itself!
Is there something wrong with the html (i don't think so)?

That's what the back-end program receives from Xitami (the environment).
CGI_STDERR=cgierr.log
CGI_STDOUT=C:\WINDOWS\TEMP\pipe0353.cgo
CGI_STDIN=C:\WINDOWS\TEMP\pipe0353.cgi
QUERY_STRING=123.txt=C%3A%5Clog.txt
CGI_URL=/cgi-bin
CGI_ROOT=C:\XITAMI\cgi-bin
DOCUMENT_ROOT=\\src\public\marc\uploads
PATH_TRANSLATED=\\src\public\marc\uploads
PATH_INFO=
REMOTE_ADDR=217.136.228.83
REMOTE_HOST=217.136.228.83
REMOTE_USER=-
CONTENT_LENGTH=22
CONTENT_TYPE=application/x-www-form-urlencoded
SCRIPT_NAME=\cgi-bin\env.exe
SCRIPT_PATH=cgi-bin
REQUEST_METHOD=POST
GATEWAY_INTERFACE=CGI/1.1
SERVER_PROTOCOL=HTTP/1.0
SERVER_PORT=80
SERVER_URL=http://web.verfaillie.com/
SERVER_NAME=web.verfaillie.com
SERVER_VERSION=2.4d6
SERVER_SOFTWARE=Xitami
FORM_123_TXT=C:\log.txt


The following line is the content of the CGI_STDIN file:
123.txt=C%3A%5Clog.txt


It's actually the same as the QUERY_STRING
Where can i find the file that (probably?) was send by the browser?

I don't know if the problem is html-related (wrong coding of html), 
xitami-related (some incorrect configuration) or visual basic related 
(can't get all the data from xitami)


Thank you very much !


Marc

----------<Mailserver VERFAILLIE BAUWENS>----------
Alle uitgaande mails gecontroleerd op virussen door onze mailserver.
Virusdefinities dagelijks aangepast.
De postmaster, <postmaster@verfaillie.com>
--=====================_508377870==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Hello from Belgium<br>
<br>
Thank you all for your replies (to the list and to me personally).<br>
I will definitely try power basic from powerbasic.com (the console
version) since i don't need an interface when sending html output to
another computer. _visual_ basic is too much for me.<br>
<br>
<br>
I will define my problem more specifically:<br>
The company i work for has an internet printer (Remote Internet
Printing). It reads it's mail via pop-3 like an ordinary mail client and
prints it out. It works perfectly for text documents.<br>
<br>
The printer can also print postscript files, but it can't handle mime. A
postcript file attached to a message is mime-encoded, but the printer
can't decode it (and there is no upgrade). Printing postcript to the LAN
printer is OK (windows file and printer sharing).<br>
<br>
<br>
So i want to get the postcript file from the remote user using http<br>
Once the file is on the server computer i can do anything to adapt the
message to the printer standards and send it without mime to the printer
mailbox.<br>
<br>
I tried following html to send a sample file<br>
&lt;html&gt;&lt;body&gt;<br>
<br>
&nbsp;&nbsp; &lt;form ACTION=&quot;/cgi-bin/env.exe&quot;
method=&quot;POST&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=file
name=&quot;123.txt&quot;&gt;&lt;br&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=submit
value=&quot;Send&quot;&gt;<br>
&nbsp;&nbsp; &lt;/form&gt;<br>
<br>
&lt;/body&gt;&lt;/html&gt;<br>
<br>
env.exe simply sends the environment and other input files back to the
browser.<br>
<br>
What i get on the server is the name of the file, but not the content
itself!<br>
Is there something wrong with the html (i don't think so)?<br>
<br>
That's what the back-end program receives from Xitami (the
environment).<br>
<font face="Courier New, Courier">CGI_STDERR=cgierr.log<br>
CGI_STDOUT=C:\WINDOWS\TEMP\pipe0353.cgo<br>
CGI_STDIN=C:\WINDOWS\TEMP\pipe0353.cgi<br>
QUERY_STRING=123.txt=C%3A%5Clog.txt<br>
CGI_URL=/cgi-bin<br>
CGI_ROOT=C:\XITAMI\cgi-bin<br>
DOCUMENT_ROOT=\\src\public\marc\uploads<br>
PATH_TRANSLATED=\\src\public\marc\uploads<br>
PATH_INFO=<br>
REMOTE_ADDR=217.136.228.83<br>
REMOTE_HOST=217.136.228.83<br>
REMOTE_USER=-<br>
CONTENT_LENGTH=22<br>
CONTENT_TYPE=application/x-www-form-urlencoded<br>
SCRIPT_NAME=\cgi-bin\env.exe<br>
SCRIPT_PATH=cgi-bin<br>
REQUEST_METHOD=POST<br>
GATEWAY_INTERFACE=CGI/1.1<br>
SERVER_PROTOCOL=HTTP/1.0<br>
SERVER_PORT=80<br>
SERVER_URL=http://web.verfaillie.com/<br>
SERVER_NAME=web.verfaillie.com<br>
SERVER_VERSION=2.4d6<br>
SERVER_SOFTWARE=Xitami<br>
FORM_123_TXT=C:\log.txt<br>
<br>
<br>
</font>The following line is the content of the CGI_STDIN file:<br>
123.txt=C%3A%5Clog.txt<br>
<br>
<br>
It's actually the same as the QUERY_STRING<br>
Where can i find the file that (probably?) was send by the browser?<br>
<br>
I don't know if the problem is html-related (wrong coding of html),
xitami-related (some incorrect configuration) or visual basic related
(can't get all the data from xitami)<br>
<br>
<br>
Thank you very much !<br>
<br>
<br>
Marc<br>
</html>

<html>
<br>
----------<Mailserver VERFAILLIE BAUWENS>----------<br>
Alle uitgaande mails gecontroleerd op virussen door onze mailserver.<br>
Virusdefinities dagelijks aangepast.<br>
De postmaster, <postmaster@verfaillie.com><br>
<br>
</html>

--=====================_508377870==_.ALT--