You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jean-Max Reymond <jm...@free.fr> on 2016/10/07 11:52:58 UTC
[users@httpd] Parameter POST to PHP with proxy
Hi,
I have an apache server Apache/2.4.18 (Ubuntu) with multiple Linux
containers
<VirtualHost *:80>
ServerName doctechnique.example.com
ErrorLog /var/log/apache2/VMdoctechnique.log
ProxyPass / http://10.0.3.123/
ProxyPassReverse / http://10.0.3.123/
ProxyPreserveHost On
ProxyRequests On
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/VMdoctechnique.log combined
</VirtualHost>
all is fine and when I type http://doctechnique.example.com, I go to the
correct container 10.0.3.123
But I have a HTML form which calls doctechnique.example.com like this
<form method="post" target="_blank"
action="http://doctechnique.exemple.com/">
<input class="bt_entete_OSRT" style="color: green;"
type="submit" value="CLASSEUR PEN" title="Click to go to Classeur PEN">
<input type="hidden" name="Hqsdf218regTYH414"
id="porteDocuments" value="wxgdbc">
</form>
redirection to http://doctechnique.exemple.com is OK but I cannot
retrieve the variable Hqsdf218regTYH414 in the PHP code of
doctechnique.example.com (variable POST).
Whats wrong ?
thanks for your tips,
--
Jean-Max Reymond
ruption de l'Etna: http://jmreymond.free.fr/Etna2002
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Parameter POST to PHP with proxy
Posted by Jean-Max Reymond <jm...@free.fr>.
Le 07/10/2016 � 15:03, Rainer Canavan a �crit :
> [...]
>> But I have a HTML form which calls doctechnique.example.com like this
> [...]
>> redirection to http://doctechnique.exemple.com is OK but I cannot retrieve
>> the variable Hqsdf218regTYH414 in the PHP code of doctechnique.example.com
>> (variable POST).
>
> If by redirect you mean a 301 or 302 redirect, then your browser is probably not
> POSTing the second request, but just using GET. If such a redirect is indeed
> currently used and necessary, you may have to use 307. Check
>
> https://tools.ietf.org/html/rfc7231#section-6.4
Thanks for the tip, now it works
thanks a lot
--
Jean-Max Reymond
�ruption de l'Etna: http://jmreymond.free.fr/Etna2002
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Parameter POST to PHP with proxy
Posted by Rainer Canavan <ra...@sevenval.com>.
[...]
> But I have a HTML form which calls doctechnique.example.com like this
[...]
> redirection to http://doctechnique.exemple.com is OK but I cannot retrieve
> the variable Hqsdf218regTYH414 in the PHP code of doctechnique.example.com
> (variable POST).
If by redirect you mean a 301 or 302 redirect, then your browser is probably not
POSTing the second request, but just using GET. If such a redirect is indeed
currently used and necessary, you may have to use 307. Check
https://tools.ietf.org/html/rfc7231#section-6.4
rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org