Re : "multipart/form-data" in vb2005

Tech-Archive recommends: Fix windows errors by optimizing your registry



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@xxxxxxxxxxxxxxxxxxxxxxx
well 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@xxxxxxxxxxxxxxxxxxxxxxx
Gillard,

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@xxxxxxxxxxxxxxxxxxxxxxx
hi,
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 ?






.



Relevant Pages

  • Re: seeking John Coleman
    ... Dim LHS As Variant ... Dim Vals As Variant ... Dim currentRow As Long ...
    (microsoft.public.excel.programming)
  • Re: seeking John Coleman
    ... Dim LHS As Variant ... Dim Vals As Variant ... Dim currentRow As Long ...
    (microsoft.public.excel.programming)