Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2013
    Messaggi
    6

    Errore 405 - metodo non consentito

    Buongiorno,
    premetto che sono un neofita di HTML.
    Ho creato nel mio sito un modulo di "checkbox" per accettare le condizioni prima di poter scaricare un file.
    Questo è il link del checkbox:
    http://www.tuttomoduli.it/contratto-...abitativo.html

    Se si accettano le condizioni mettendo il flag, il codice dovrebbe far puntare ad un file caricato sul sito e permettere lo scaricamento ( in questo caso il file si chiama, per prova "index.html".

    Però mi da l'errore descritto qui sotto:

    Non riesco proprio a risolvere il problema. Chi mi puo' aiutare ?

    Grazie a tutti

    Marco


    HTTP Error 405.0 - Method Not Allowed

    The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
    Detailed Error Information
    Module StaticFileModule
    Notification ExecuteRequestHandler
    Handler StaticFile
    Error Code 0x80070001
    Requested URL http://www.tuttomoduli.it:80/index.html
    Physical Path D:\Inetpub\webs\tuttomoduliit\index.html
    Logon Method Anonymous
    Logon User Anonymous




    Questo è il codice del checkbox:

    codice:
    <tbody>
                                <tr>
                                  <td style="vertical-align: top;">
                                  <script language="JavaScript">
    <!--
    function checkCheckBox(f){
    if (f.agree.checked == false )
    {
    alert('Accetta le condizioni per favore');
    return false;
    }else
    return true;
    }
    // -->
                                  </script>
    
                                  <div align="center">
                                  <form action="index.html" method="post" onsubmit="return checkCheckBox(this)">
                                    
    
    <span style="font-family: Arial; color: rgb(202, 0, 2);">Accetto
    i termini:</span> <input value="0" name="agree" type="checkbox"> <input value="Scarica il modello" type="submit"></p>
                                  </form>
                                  </div>
                                  
    
                                  </td>
                                </tr>
                              </tbody>

  2. #2
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    codice:
    <form action="index.html"
    Most likely causes:
    The request sent to the Web server used an HTTP verb that is not allowed by the module configured to handle the request.
    A request was sent to the server that contained an invalid HTTP verb.
    The request is for static content and contains an HTTP verb other than GET or HEAD.
    A request was sent to a virtual directory using the HTTP verb POST and the default document is a static file that does not support HTTP verbs other than GET or HEAD.

    stai tentando di inviare dati a un file statico: inutile provarci

  3. #3
    Utente di HTML.it
    Registrato dal
    May 2013
    Messaggi
    6

    Errore 405

    Grazie per la risposta,

    che alternativa posso usare per ottenere lo stesso risultato?

    ( Cioè obbligare il click su un flag prima di scaricare un file ? )

    Grazie

    Marco

  4. #4
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    flag a parte... devi farlo scaricare o visualizzare?
    se chiedo il file index.html vengo dirottato su index.html#.UeZ7y9JM_Ew
    come funziona la faccenda?

  5. #5
    Utente di HTML.it
    Registrato dal
    May 2013
    Messaggi
    6

    Errore 405

    In realtà al posto del file "index.htm", che ho messo per fare delle prove, dovrebbe esserci il file del modello da scaricare ad. es. "contratto.doc".
    Vorrei che consenta il download solo dopo aver accettato le condizioni.
    Però potrebbe andare bene anche visualizzare il file. Poi chi è interessato lo salva ( come si fa con i pdf ).
    L'importante è che riesco a fare accettare la condizione e consentire il download.
    Grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.