e JSON; # imports encode_json, decode_json, to_json and from_json.
$fdat{test} = "test";
$json= encode_json(\%fdat);
$escmode = 0;
$http_headers_out{'Content-Type'} = "application/json;
charset=utf-8";
print OUT $json;
-]
Thank You,
~Donavon
---
CGI.pm to populate %fdat?
In my script I am just using %fdat. I am not loading nor using CGI.pm.
Any documentation that I have seen online refer to embperl and CGI.pm
as separate, so unless I load CGI.pm or use "multipart/form-data" it
should be a different issue. Am I missing s
Thank You.
How can this be set for a single embperl .epl file?
I only need to process JSON in one file and leave the fdat processing
normal for the hundreds of other files.
Thank You,
~Donavon
On 4/8/2015 3:52 AM, rich...@ecos.de wrote:
Hi,
Embperl use CGI.pm only for multipart/formdata
Hello.
We would like to create an API using REST and EMBPERL.
Did you come up with a working solution to implement REST with embperl?
Thank You,
~Donavon
On 8/27/2015 6:40 AM, Jean-Christophe Boggio wrote:
Le 24/08/2015 19:57, Jim Howard a écrit :
Darn. My only other bit of advice was
Are there any suggestion for optimizing and / or speeding this up?
Thank You,
~Donavon
djler...@yahoo.com
[$ while ( ($ID) = $sth->fetchrow) $]
[- %opts = (); $opts{ID} = $ID; $opts{title} = "Modal Title";
$opts{footer} = "Modal Footer"; $opts{frameSrc} = "file.epl&
my understanding that generally, templates are done in
Embperl::Object. But when doing it that way, your template is
stored in your base Embperl::Object file, as Embperl code, rather
than having everything stored in a database. Of course, that has
the a
GI.pm internally to process forms encoded
with multipart/form-data" and that get processed into %fdat.
Is there a way to disable this behavior dynamically per page to accept
application/json data.
Thanks,
~Donavon
pts accepting these
calls to specific directories.
|varformData
={"data1":a,"data2":b,"data3":c};$.ajax({dataType:"json",contentType
:"application/json; charset=UTF-8",url:'/folder1/doSomething1.epl',data
:formData,success:function(response)
doSomething1.epl',data
</tt><tt>:formData,success:function(response){CurrentArray=response;}}); ||doSomething1.epl| doesn't receive the JSON data as %fdat. %fdat is empty.
On 9/8/2016 10:18 AM, Ruben Safir wrote:
On 09/08/2016 01:04 PM, Donavon wrote:
I agree with all of
e:"json",
contentType:"application/json; charset=UTF-8",
url:'/folder1/doSomething1.epl',
</pre><tt>data:formData, success:function(response){ CurrentArray=response; } });
</tt><tt>
On 9/8/2016 10:21 AM, Neil Gunton wrote:
Donavon w
t;Content-type",
"application/x-www-form-urlencoded");' is not always possible.
A lot of things RESTful seem to use application/json.
On 9/8/2016 12:22 PM, Neil Gunton wrote:
Donavon wrote:
If I use Embperl to receive JSON data. That's where the issue
arises. |
Can somebody please provide a complete (working) example of how
EMBPERL_OPTIONS are set for a single .epl file or directory.
Thank You,
~Donavon
-
To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org
For additional
*When I try this:*
.htaccess EMBPERL_OPTIONS optDisableFormData = 256
*I get this error**:* In /var/log/httpd/error_log: .htaccess:
EMBPERL_OPTIONS takes one argument
On 9/13/2016 3:46 PM, Donavon wrote:
Can somebody please provide a complete (working) example of how
EMBPERL_OPTIONS are
nstalled
Suggested changes and modifications are greatly appreciated. I still
need to get GET, PATCH and DELETE working.
Thank You and I HOPE this comes in handy to others!!!
~Donavon
*.htaccess*
EMBPERL_OPTIONS 256
*base.html*
Hello World!!!
var url = "json
ipher->decrypt() part.
Any suggestions? Could it be an embperl issue or perl issue?
Thank You,
~Donavon
*temp.epl*
[- use JSON; # imports encode_json, decode_json, to_json and
from_json. use MIME::Base64; use Mycopa::Encrypt;
$encrypt= new Mycopa::Encrypt()
Hello.
I have a sample program in 2 formats perl & embperl.
The perl version works as a CGI but the embperl version does not work.
Any suggestions or pointers to solutions would be appreciated
OS: Linux version 2.6.35.6-48.fc14.i686.PAE (...) (gcc version 4.5.1 20100924
(Red Hat 4.5.1-
Ack... Sorry about the last email with unreadable code. My email system does
something strange with some text. Here is the email again with readable code.
Hello.
I have a sample program in 2 formats perl & embperl.
The perl version works as a CGI but the embperl version does not work.
Any su
With the help of user ikegami over at stackoverflow. The following solutions
works.
[-
use warnings;
use strict;
use IPC::Open3;
use POSIX;
$http_headers_out{'Content-Type'} = "text/plain";
my $cmd = 'ls';
open(my $fh, '>', '/dev/null') or die $!;
dup2(fileno($fh), 1) or die $! if
This is great...
"You can send it to a file (e.g. /dev/null):
open FH, "/dev/null" ;
select (FH) ; # send STDOUT to FH
Is that what you want?
Gerald"
Is there a way to set STDOUT back embperl OUT and to the browser after this?
~Donavon
Is there a way to use the CSS or JS of the calling .epl in the .epl that is
called via execute?
Thank You,
~Donavon
-
To unsubscribe, e-mail: embperl-unsubscr...@perl.apache.org
For additional commands, e-mail: embperl-h
20 matches
Mail list logo