title: Mailgun webhooks and classic asp
body: <p>I've set up a URL for a web hook in the Mailgun control panel and have set up a script to append a txt file with the HTTP Post from Mailgun to the URL when a bounce occurs. I've tested it by submitting a HTTP Post from a test page submitting a form and the form data gets written to the txt file fine - however when I trigger the test from Mailgun a new line gets written but the Request.Form collect appears to be empty.</p>
  
  <p>Am I missing something in the HTTP Post from Mailgun and the way I'm trying to get the request.form collection from it?</p>
  
  <pre><code>&lt;%
  strWebhookData = "///// New Entry ///" &amp; vbnewline
  For Each Item In Request.Form
          fieldName = Item
          fieldValue = Request.Form(Item)
          Response.write fieldName &amp; " " &amp; fieldValue
          strWebhookData =  strWebhookData &amp; fieldName &amp;" = " &amp; fieldValue &amp; vbnewline        
      Next 
  Response.write strWebhookData
  
  set fs=Server.CreateObject("Scripting.FileSystemObject")
      set f=fs.OpenTextFile(Server.MapPath("bounces.txt"),8,true)
      f.WriteLine(vbnewline &amp; strWebhookData)
      f.Close
  set f=Nothing
  set fs=Nothing
  
  %&gt;
  </code></pre>