Re : "multipart/form-data" in vb2005
- From: "Gillard" <gillard_georges@@@@@@@@@hotmail.com>
- Date: Sat, 21 Feb 2009 19:38:00 +0100
I do not understand where I put the image data???
Vals.Add( ???
or
oWc.Headers.Add ???
and if it is in oWc.Headers then
what is vals for ???
"Michel Posseth [MCP]" <MSDN@xxxxxxxxxxx> a écrit dans le message de groupe de discussion : O$77AaElJHA.5112@xxxxxxxxxxxxxxxxxxxxxxx
Aha.
http://www.twitpic.com/api.do
Well that should be no problem
this example might give you an idea
Dim oWc As New System.Net.WebClient()
oWc.Headers.Add("Content-Type", "your transfer type")
Dim Vals As New System.Collections.Specialized.NameValueCollection()
Vals.Add("bla1", "value of 1")
Vals.Add("bla2", "value of 2")
Dim byteBuffer As Byte()
byteBuffer = oWc.UploadValues("http://www.example.com/justaname.aspx", "POST", Vals)
Dim sBuffer As String= System.Text.Encoding.Default.GetString(byteBuffer)
HTH
Michel
"Michel Posseth [MCP]" <MSDN@xxxxxxxxxxx> schreef in bericht news:uP4uiiDlJHA.1292@xxxxxxxxxxxxxxxxxxxxxxx
Maybe you can provide some more info
As wich of the API methods of twitter you want to call to perfom this action
regards
Michel
"Gillard" <gillard_georges@@@@@@@@@hotmail.com> schreef in bericht news:uaHWSz4kJHA.5732@xxxxxxxxxxxxxxxxxxxxxxxwell it may work as is for a Web App but I'm on a Desktop app
I'm making a twitter client and the multipart/form data is for to post pictures on twitpic.com
sorry I should have sayed that was for a desktop app
"Cor Ligthert[MVP]" <Notmyfirstname@xxxxxxxxx> a écrit dans le message de groupe de discussion : eususn4kJHA.4404@xxxxxxxxxxxxxxxxxxxxxxxGillard,
Simple start a webapplication and than a form.
Drag 3 textboxes on it, and you have your page.
In the IsPostBack event you look if the username and password are entered.
(You can also see this at client side, but then you need some non VB.Net code)
Cor
"Gillard" <gillard_georges@@@@@@@@@hotmail.com> wrote in message news:OkK1kY4kJHA.1340@xxxxxxxxxxxxxxxxxxxxxxxhi,
how do I have to do to post "multipart/form-data" in vb.net
here is the data I have to post togueter
----Begin----------------------------
media (required) - Binary image data - username (required) - username - password (required) - password - message (optional) - Message
-----End----------------
how do I format it?
I really do not know how wich framework class to use System.Net.HttpWebRequest ?
how do I handle the response
please , any idea to help me ?
- References:
- "multipart/form-data" in vb2005
- From: Gillard
- Re: "multipart/form-data" in vb2005
- From: Cor Ligthert[MVP]
- Re : "multipart/form-data" in vb2005
- From: Gillard
- Re: "multipart/form-data" in vb2005
- From: Michel Posseth [MCP]
- Re: "multipart/form-data" in vb2005
- From: Michel Posseth [MCP]
- "multipart/form-data" in vb2005
- Prev by Date: Re: FTP CD command
- Next by Date: Re: FTP CD command
- Previous by thread: Re: "multipart/form-data" in vb2005
- Next by thread: FTP CD command
- Index(es):
Relevant Pages
|