perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Re: Subrequest to remote server
Date Mon, 21 May 2007 15:17:41 GMT
I remember vaguely I had similar problem some time agou - solved it 
using LWP

- Robert


Frank Wesemann wrote:
> Hello list,
> just to make sure I didn't miss something:
>
> Am I right in the assumption that I can not make a Embperl subrequest 
> directly to a remote server?
> I tried in myaction.ep:
>     Execute ( { inputfile    => 'somestring',
>               subrequest => 'http://hidden.server.com/action/to/perform',
>             } )
> But I got the error :
>     File does not exist: /path/to/myaction.ep/proxy:http:
>
> My current workaround is now to have a ProxyPass Directive in httpd.conf:
>  ProxyPass /virt/action  http://hidden.server.com/action/to/perform
>
> and then in myaction.ep:
>         Execute ( { inputfile    => 'somestring',
>               subrequest => 
> '/virt/action/?'.Serialize(%fdat).Serialize(%udat),
>             } )
>
> Despite the fact that this works, I' rather avoid this, because a) I 
> don't want to expose hidden.server to the public and
> b) myaction.ep is somewhat sessioncontroled access restricted, what is 
> now lost.
> Because now everboy can perform an 
> http://public.server.com/virt/action?data=to&foist=the_server.
>
> Does anybody have an idea about that or am I doing something stupid here
>
> Thanks
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message