#129 Seriously: EPIC, for whom?

closed
nobody
5
2012-04-02
2010-03-28
leif lofgren
No

Seriously: EPIC, for whom?
1. command post from * html page to xxx.perl on the server.
2. Enviroment to xxx.pl
3. return via the print command in xxx.pl
4. The best method is to write a user.html on how to use EPIC.
example:
#!/usr/bin/perl
#
#get time (tid) from server
#
read(STDIN, $buffer,$ENV{'CONTENT_LENGTH'});
$buffer =~ tr/+/ /;
$buffer =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
$buffer =~ s/<!--(.|\n)*-->/ /g;
$buffer =~ tr/\\|[|]|<|!|"|$|{|}|*|#|'|>|||;|%/ /;
@pairs = split(/&/,$buffer);
foreach $pair(@pairs){
($key,$value)=split(/=/,$pair);
$formdata{$key}.="$value";
}
#
$subject=$formdata{'subject'};
$sscmd=$formdata{'sscmd'};
#$submit=$formdata{'submit'};
#
# Get the Date for Entry
$t1sec = time();
#
print "Content-type: text/html\n\n"; #Follow with blank line

print <<End1HTML;
<html><head><title>T</title></head>
<body>
<br> subject $subject <br>
<br> sscmd $sscmd <br>
<br> tt1sec $t1sec <br>
<br> tt2sec $t1sec <br>
</body></html>
End1HTML
#
5. the result when used EPIC:
Use of uninitialized value in read at C:/SRV/workspace/perltest/gettid.pl line 5.
Use of uninitialized value $subject in concatenation (.) or string at C:/SRV/workspace/perltest/gettid.pl line 28.
Use of uninitialized value $sscmd in concatenation (.) or string at C:/SRV/workspace/perltest/gettid.pl line 28.
Content-type: text/html

<html><head><title>T</title></head>
<body>
<br> subject <br>
<br> sscmd <br>
<br> tt1sec 1269782550 <br>
<br> tt2sec 1269782550 <br>
</body></html>
6. NOTE: epic on local PC.

Discussion

  • Oliver Trosien
    Oliver Trosien
    2010-07-16

    I cannot see a feature request here, even after the third read of this post..

    - Do you need a better handbook?
    - Do you need examples on how to develop web applications with EPIC?

    Please be more precise, or close this issue.

     
  • Jan Ploski
    Jan Ploski
    2012-04-02

    • status: open --> closed
     
  • Jan Ploski
    Jan Ploski
    2012-04-02

    Original poster didn't communicate clearly what he wants, so closing this one.