House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / .NET Technical Talk (Net-Talk)

ASP Net equivalent to CFHttp Post

Author:
Duane Boudreau
01/16/2009 05:15 PM

That was the ticket. Thanks! Duane Check out the WebRequest class. -Mike Chabot > Does anyone know the equivalent to using CFHttp to do a form post in > ASP.Net? > > > > I tried this but its failing: > > > > WebClient webclient = new WebClient(); > > byte[] aRes = webclient.UploadData("http://urltofile", "POST", > Encoding.ASCII.GetBytes("field1=hello&field2=world")); > > UTF8Encoding utf8 = new UTF8Encoding(); > > string result = utf8.GetString(aRes); > > > > > > Doesn't seem to work. > > > > Thanks, > > Duane > > > > > > >


Search net-talk

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29