title: Post request didn't pass parameter android to asp.net in IIS server
body: <p>I am trying to trigger a create action in my ASP.NET web application from android. </p>
  
  <p>The code seems to be working fine with no errors. I am using IIS 6 in Windows 7. I suspect a missing configuration in IIS? </p>
  
  <p>I didn't get value in the web app.</p>
  
  <p><strong>Android Code:</strong></p>
  
  <pre><code>List&lt;NameValuePair&gt; postParameters = new ArrayList&lt;NameValuePair&gt;();
  postParameters.add(new BasicNameValuePair("supplier_name", 
                                            "Thein Htike Aung"));
  
  HttpClient client1 = new DefaultHttpClient();
  HttpPost request = 
      new HttpPost("http://192.168.1.104/LogicUniversity/SupplierHandler.ashx");
  
  try {
      UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(postParameters);
      request.setEntity(formEntity);
  
      request.addHeader("Content-type", "application/x-www-form-urlencoded");
      HttpResponse response = client1.execute(request);
  
      BufferedReader in = new BufferedReader(
                            new InputStreamReader(
                                  response.getEntity().getContent()));
  
      String line;
      String page="";
      line = in.readLine();
  
      while(line!=null)
      {
        page=page+line;
        line=in.readLine();
      }
  
      Log.i("Page",page);
      in.close();
  } catch (ClientProtocolException e) {
      e.printStackTrace();
  } catch (IOException e) {
      e.printStackTrace();
  }             
  </code></pre>
  
  <p><strong>In Web Handler</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  using ApplicationLayer.Controllers;
  using ApplicationLayer;
  
  namespace PresentationLayer
  {
      /// &lt;summary&gt;
      /// Summary description for SupplierHandler
      /// &lt;/summary&gt;
      public class SupplierHandler : IHttpHandler
      {
          public void ProcessRequest(HttpContext context)
          {
              string name = context.Request.QueryString["supplier_name"];
  
              if (name != null)
              {
                  Supplier s = new Supplier();
                  s.supplier_name = name;
                  s.code = "TEST";
                  new SupplierController().actionCreateSupplier(s);
              }
          }
  
          public bool IsReusable
          {
              get
              {
                  return false;
              }
          }
      }
  }
  </code></pre>