如何解决HTTP / 1.1 302在尝试在php中获取表单内容时发现错误


how to solve HTTP/1.1 302 Found error when trying to get contents of a form in php?

我的应用程序中遇到了一个错误,当我尝试提交包含大量信息的表单(POST 方法)时,接收信息并对我的索引进行编辑的文件发生 HTTP/1.1 302 发现错误

html代码和php都很简单,但信息很大

表单的代码

    <form name="resena" action="consultas/resena.php" method="post" enctype="multipart/form-data">
<fieldset>
    <legend><?php echo $titulo; ?> una reseña</legend>
    <br /><br /><label for="titulo">Título</label><input type="text" name="titulo" id="titulo" size="45" maxlength="100" value="<?php echo $con["titulo"]; ?>" placeholder="hasta 70-100 caracteres o menos" titulo="hasta 70-100 caracteres o menos" onkeyup="texto(titulo)" required />
    <br /><br /><label for="fecha">Fecha</label><input type="text" name="fecha" id="fecha" size="12" maxlength="10" value="<?php echo $con["fecha"]; ?>" placeholder="Fecha" required="required" readonly="readonly" /><input name="f_b" type="button" id="f_b" value="...">
    <br /><br /><label for="resumen">Resumen</label><textarea name="resumen" id="resumen" cols="60" rows="4" wrap="hard" onkeyup="texto_tarea(resumen);"><?php echo $con["resumen"]; ?></textarea>
    <br /><br /><label for="eventos">Evento relacionado</label><select name="eventos" title="eventos"><option value=""></option><?php $s_ev=mysql_query("SELECT * FROM eventos"); while($v_ev=mysql_fetch_array($s_ev)){?><option value="<?php echo $v_ev["id_prod"];?>" <?php if($evento==$v_ev["id_ev"]){?>selected="selected"<?php } ?>><?php echo $v_ev["titulo"]?></option><?php } ?></select>
    <br /><br /><input type="submit" name="Aceptar" value="Aceptar" class="bot" style="float:left;" />&nbsp;&nbsp;<input type="reset" name="Vaciar Formulario" value="Vaciar Formulario" class="bot" />
</fieldset>
</form>
<?php 
    include("ckeditor.php");
    $CKEditor = new CKEditor();
    $CKEditor->basePath = '/edicion/';
    $CKEditor->replaceAll();
?>
<script>Calendar.setup({inputField:"fecha", ifFormat:"%Y/%m/%d",button:"f_b"});</script>

受体只有对数据库的查询

> 302 不是错误,而是重定向到临时位置。您可以将请求重新发送到响应标头中收到的新位置。

你是对的,这是服务器配置错误modSecurity 防火墙阻止了我的请求,正在进行自动重定向 (302)。

服务器的管理员帮助它,现在一切运行良好

非常感谢所有试图在这里帮助我的人

我使用 IP 地址而不是 url,它为我回答了。