Click here to Skip to main content
15,611,949 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Experts

how to send data to modem using the post method. I searched Google but was not getting an idea. I write my application like:

string ipadd = Request.UserHostAddress;
if (Request.Form["AUTH"] != null)
  //Clear existing stuff from response
  //Set response type
  Response.ContentType = "text/plain";
  byte [] bt=ReadFully(Stream stream, int initialLength)
  Response.Write(" testing the data");

it is not working with modems. When I send the data in the post command, an error will display like "response failed".
Updated 22-Nov-10 18:52pm

1 solution

Unless your modem has a web server built into it, this isn't going to work at all. Modems are usually connected via Serial ports, unless you're not talking about a normal modem connected to a phone line?
Share this answer
chandrashekhar racharla 24-Nov-10 7:19am    
my modem having web server,which is having gprs connection,it is working fine in post method

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900