perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter - ECOS GmbH" <rich...@ecos.de>
Subject RE: Subrequest to remote server
Date Fri, 25 May 2007 16:41:43 GMT
> 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:

Try 

  proxy:http://hidden.server.com/action/to/perform  

That should work, but I didn't tried it on my own (of course proxy needs 
to be enabled and loaded)

Gerald


> 
> 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
> 
> 
> --
> mit freundlichem Gruß,
> 
> Frank Wesemann
> Fotofinder GmbH         USt-IdNr. DE812854514
> Software Entwicklung    Web: http://www.fotofinder.net/
> Potsdamer Str. 96       Tel: +49 30 25 79 28 90
> 10785 Berlin            Fax: +49 30 25 79 28 999
> 
> Sitz: Berlin
> Amtsgericht Berlin Charlottenburg (HRB 73099)
> Geschäftsführer: Ali Paczensky
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 
> ** Virus checked by BB-5000 Mailfilter ** 
> !DSPAM:416,464da01c216582632786327!
> 
> 

** Virus checked by BB-5000 Mailfilter **

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


Mime
View raw message