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
>
>
>
>
>
>
>