Click here to Skip to main content
15,887,875 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: LPCTSTR Question Pin
Mike Ellison17-Nov-04 6:50
Mike Ellison17-Nov-04 6:50 
GeneralRe: LPCTSTR Question Pin
SarahAmelia17-Nov-04 7:47
SarahAmelia17-Nov-04 7:47 
GeneralRe: LPCTSTR Question Pin
Mike Ellison17-Nov-04 7:52
Mike Ellison17-Nov-04 7:52 
GeneralRe: LPCTSTR Question Pin
SarahAmelia17-Nov-04 8:04
SarahAmelia17-Nov-04 8:04 
GeneralRe: LPCTSTR Question Pin
MohammadAmiry17-Nov-04 23:31
MohammadAmiry17-Nov-04 23:31 
GeneralRe: LPCTSTR Question Pin
SarahAmelia18-Nov-04 1:08
SarahAmelia18-Nov-04 1:08 
Generalparsing query in data report in runtime Pin
anj198317-Nov-04 0:55
anj198317-Nov-04 0:55 
GeneralPosting data to php file Pin
celebisson17-Nov-04 0:39
celebisson17-Nov-04 0:39 
I have a problem.I am trying to post data from vb.net file to php file.I have achieved this issue in asp file,but I can't realize on php file.Here is my pseudocode for asp file:
Request = WebRequest.Create("http://" & Me.TextBox3.Text & ":" & Me.TextBox4.Text & "/default.php")
Request.Method = "POST"

Dim vHeaders As Object
vHeaders = "Content-Type: application/x-www-form-urlencoded" + Chr(10) + Chr(13)

Dim sUserNameParameter As String = "UserName="
Dim sPasswordParameter As String = "Password="
Dim sPostData As String = sUserNameParameter & Me.TextBox1.Text & "&" & sPasswordParameter & Me.TextBox2.Text
Dim oByteString() As Byte
oByteString = ASCIIEncoding.ASCII.GetBytes(sPostData)

Request.ContentType = vHeaders
Request.ContentLength = oByteString.Length

Dim myStream As Stream
myStream = Request.GetRequestStream()

myStream.Write(oByteString, 0, oByteString.Length)
myStream.Close()
Request.Timeout = 10000
Respond = Request.GetResponse()


After that code , I take the response from the asp file and I process the data belonged to the response.

So, How can I post data to php file served by apache server?
Thanks...

GeneralVBS to AutoReply Pin
Electrolite16-Nov-04 23:33
Electrolite16-Nov-04 23:33 
GeneralBinding class objects to datagrid Pin
Member 116124816-Nov-04 22:57
Member 116124816-Nov-04 22:57 
GeneralCheck node level in tree view control Pin
Mekong River16-Nov-04 21:13
Mekong River16-Nov-04 21:13 
GeneralBootstrapper Pin
nitin_ion16-Nov-04 16:37
nitin_ion16-Nov-04 16:37 
GeneralRe: Bootstrapper Pin
CodeWell18-Nov-04 12:19
CodeWell18-Nov-04 12:19 
GeneralRe: Bootstrapper Pin
nitin_ion18-Nov-04 18:49
nitin_ion18-Nov-04 18:49 
GeneralRe: Bootstrapper Pin
CodeWell18-Nov-04 21:00
CodeWell18-Nov-04 21:00 
GeneralRe: Bootstrapper Pin
nitin_ion18-Nov-04 21:36
nitin_ion18-Nov-04 21:36 
GeneralRe: Bootstrapper Pin
CodeWell21-Nov-04 14:53
CodeWell21-Nov-04 14:53 
Generalattachments not working in Outlook 2000 using mapi32.dll Pin
jms007x16-Nov-04 15:27
jms007x16-Nov-04 15:27 
GeneralRe: attachments not working in Outlook 2000 using mapi32.dll Pin
Anonymous16-Nov-04 16:00
Anonymous16-Nov-04 16:00 
GeneralRe: attachments not working in Outlook 2000 using mapi32.dll Pin
jms007x16-Nov-04 19:37
jms007x16-Nov-04 19:37 
GeneralDisplaying the WindowsForm MonthCalendar Pin
Haggis7316-Nov-04 10:57
Haggis7316-Nov-04 10:57 
GeneralCrystal Reports Pin
Mountie16-Nov-04 8:27
Mountie16-Nov-04 8:27 
GeneralRe: Crystal Reports Pin
Anonymous16-Nov-04 8:31
Anonymous16-Nov-04 8:31 
GeneralRe: Crystal Reports Pin
Anonymous16-Nov-04 8:39
Anonymous16-Nov-04 8:39 
GeneralRe: Crystal Reports Pin
Mountie16-Nov-04 9:17
Mountie16-Nov-04 9:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.