hi
i hv a html like this:
i always use web browser for post these data but i hv problem like : (downlod json dialoge result after posted or i can not get event completed)
now i want use other way to can get result and events too like json reulst after post or event for complete after result retunred.
i hv sample with xml or winsock like this :
but not worked .
any body here can help me to can post both strings and file fields?
i hv a html like this:
Code:
<form method="POST" action="destionation" enctype="multipart/form-data">
<label>
<span>chat_id :</span>
<input id="field1" type="text" name="chat_id" value="11" />
</label>
<label>
<span>caption :</span>
<input id="field2" type="text" name="caption"/>
</label>
<label>
<span>photo</span>
<input id="photo" type="file" name="photo" />
</label>
<label>
<span> </span>
<input id="send" type="submit" class="button" value="senddata" />
</label>
</form>
now i want use other way to can get result and events too like json reulst after post or event for complete after result retunred.
i hv sample with xml or winsock like this :
Code:
sEntityBody = "----boundary" & vbCrLf
sEntityBody = sEntityBody & "Content-Disposition: form-data; name=fileInputElementName; filename=""" + sFileName + """" & vbCrLf
sEntityBody = sEntityBody & "Content-Transfer-Encoding: base64" & vbCrLf
sEntityBody = sEntityBody & "Content-Type: application/pdf" & vbCrLf & vbCrLf
sEntityBody = sEntityBody & sPDFBase64 & vbCrLf
sEntityBody = sEntityBody & "-----boundary--" & vbCrLf & vbCrLf
Set xhr = New MSXML2.XMLHTTP30
xhr.setRequestHeader("Content-Type", "multipart/form-data; boundary=-----boundary")
xhr.Open "POST", sUrl, False
xhr.send sEntityBody
any body here can help me to can post both strings and file fields?