|
-
Oct 8th, 2005, 01:40 PM
#1
Thread Starter
Member
WebClient VS. HttpWebRequest, HttpWebResponse to "POST" a file
Hello all;
I've been trying to post an XML file to a specified uri, we can use either webClient or httpwebrequest and response classes. does anyone know whats the difference between them in this case? both of them can give the same result? personally, i think webClient is simpler!
I have another question, how can i get the http result out of posting? the results from both webclient and webReponse returns as array of bytes. but i can't get the error code...in this case, can i assume if the posting didn't throw any exception that the result of the http is "404 Accepted" ?
Thank you for your time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|