HTTP Posting

  • Thread starter Thread starter Nak
  • Start date Start date
N

Nak

Hi there,

I was wondering if anyone had any examples of doing a HTTP post to a
specific IP Address and Port, I need the post to contain several text fields
and 1 binary data field. Thanks in advance for any help, pointing me in the
right direction would be most appreciative. Thanks again!

Nak.
 
Dim myClient As New System.Net.WebClient

myClient.UploadValues("121.121.121.121", CollectionOfValuePairs)

HTH
 
Hi OHM,

This uploads strings? I need to be able to upload an image with this
also in the same upload. Any ideas? Thanks for your help OHM.

Nak.
 
Try the HTTPWebRequest Class , I think this will do it, it supports POST,
GET and PUT. requests
 
Thanks, I shall take a look man ;-)

Nak.

One Handed Man ( OHM - Terry Burns ) said:
Try the HTTPWebRequest Class , I think this will do it, it supports POST,
GET and PUT. requests

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .


to me
 
Yes, it is, but maybe I will get my reward in heaven, there I shall have
both hands.

Regards --

OHM ( Terry Burns )
. . . One-Handed-Man . . .
 
Indeed you shall! :-)

One Handed Man ( OHM - Terry Burns ) said:
Yes, it is, but maybe I will get my reward in heaven, there I shall have
both hands.

Regards --

OHM ( Terry Burns )
. . . One-Handed-Man . . .
 
Hi Nak,

In addition, I think you may try to take a look at the link below.
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=115
Download And Upload A File Using C#

WebClient.UploadData Method [C#]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemnetwebclientclassuploaddatatopic.asp

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top