Loggin To A Website POST Method And DOM Or Inet Or Winsock HELP!!
Hi well what im trying to accomplish is succesfully load to a site that to login requires POST Method here's a little bit of the souce ------------------------------------------------------------------------------- <form method="POST" action="membersarea.php"> <tr> <td width="100%" colspan="2"><font color="#FFFFFF"><b><font size="1" face="Verdana"> EMAIL:</font></b><br> <input type="text" size="17" name="email"></font></td> </tr> <tr> <td width="100%" colspan="2"><font color="#FFFFFF"><b><font face="Verdana" size="1"> PASSWORD:</font></b><br> <input type="password" size="17" name="password"></font></td> </tr> <tr> <td width="100%" colspan="2"> <input type="checkbox" value="1" name="remember" CHECKED><font size="1"><b>Remember Me</b></font> </td> </tr> <tr> <td><font size="1" face="Arial Narrow"><a href="lostpass.php"> Forgot Password?</a></font></td> <td><input type="submit" value="Login" name="submit"> <input type="hidden" value="1" name="login_submit"></td> </tr> </form> ------------------------------------------------------------------------------
ok i need to login i have tried to do it with the DOM and this is what i got so far
VB Code: Private Sub Command1_Click()With WB.Document.getElementById("email").Value = Text1.Text.getElementById("password").Value = Text2.Text.getElementById("remember").Value = "1".getElementById("submit").Value = "Login".getElementById("login_submit").Value = "1".Forms(0).Login.ClickEnd With End Sub Private Sub Form_Load() WB.Navigate "http://www.domain.com" Do While WB.ReadyState <> READYSTATE_COMPLETE DoEvents LoopEnd Sub
ok i get an error 'object doesnt support this method' highlights this line
.Forms(0).Login.Click
anyway i can succesfully login to the page Thanks ALOT!!!
P.S. also there's anyway i can do it with INET control and winsock i would like to learn all of them 3 using POST method... thanks
regards,
EJ
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Alternate HTTP POST Method Using XMLHTTP (Winsock/INET Control Problems)
I have a rather large application that we have been developing at work for about a year now that has a custom VB6 client and an ASP/VBScript server backend.
The application has been running pretty good on the INET control using the HTTP GET method for posting our queries to the server, but we have recently encountered the problem where some of our forms are larger then the 2k limit on HTTP GET. We have tried modifying the size of the allowed GET query/URL on the server (IIS6) but have been unable to get this to work either.
We then tried switching over to HTTP POST using INET and the StateChanged event. The problem is that the StateChanged event will never execute because the .Execute is located in a Module, but the INET Control and StateChanged event are located on our main Form. ARGH! Nothing we try seems to work with this method, and there are 100's of routines on aprox 20 forms that are calling our code in the Module when they need to query the server!
Yesterday I tried playing around with using the WinSock control - BUT IT SEEMS TO HAVE THE SAME PROBLEM! I am thinking there is a "bug" of sorts in VB6 that will not allow the StateChanged to fire if you utilize a control from another form or module that is not the original form the control is located on.
Today I am looking for a new method of implementing HTTP POST and retrieving the results that does not require the use of StateChanged. Any ideas?
Thanks for your time,
Dancing Hippo
Inet Post Method
When using the POST method,
Which way is the post data meant to be formatted?
something like this??
strPostData = "option=value&option1=value1&option2=value2"
or is it like this??
strPostData = "option=value option1=value1 option2=value2"
Any ideas?
Inet And POST Method
Hi all
got kind of a newbie Q here...
Im using the inet component to submit some info to a web page (typical login), and it seems as if i need to provide a form name
(<form name="something">).
can i send this info to the page using inet??
thanx
Inet Post Method
Hi everyone, I have searched this topic and found little to nothing usefull.
I am running on VB6 and I need to be able to send some strings using the Inet POST method.
If anyone can give me a rundown on how to use it that would be awsome, thanks.
Post Info To A URL Using Asp Script And Getting Results Like Http Method Post.
I am trying to find script or just where to start.
I want to use asp script (server side) to post some hidden info to another server(URL), then get the info back from the return page and parse through the text to return a page based on the text in the return page.
I Don't want to have the user forwarded to the page that the post is going to I just want to post info to the URL and get the data back. Then create a page based on the data.
Any help with this will be much appreciated.
Thanks,
Dave
Post Data To Website XML
I've made a frm with two text boxes and a command box. When a user enters info to the text box and then clicks the command box I want the information to be sent to a website XML script.
How do I link these two??
Post Data To Website
Hi all,
I dont know if this question has ever been asked before, but I cant find much ressource on this: does anyone know how I could make a VB app send/post data to a given website... Something like sending a log or simmilar. I have an app that once a user has installed need to send its profile to register the software. Hope this is clear enough, guess many software does this...
all help appreciated,
thanx in advance.
Post XML To A Website Using Form In VB
I am having a problem posting XML data to a website. This is the code that I am using:
xmldata = "C:data.xml"
Dim xml As New MSXML2.XMLHTTP
Dim doc As New MSXML2.DOMDocument
xml.Open "POST", "http://removed url for this post", False
doc.Load myXMLdata
xml.send (doc.xml)
Text2.Text = xml.responseText
Set xml = Nothing
Set doc = Nothing
Problem is that the place I am posting to says that they are not receiving my data. Any ideas?
Use VB6 To Post Data To A Website
I want to use VB6 to gather data from a database and then post that to a website. Can VB do an http post? Does anyone have some sample code that would help me get started?
The website is setup to allow either form submission or a query string. I'll be passing it the variable names and the values.
VB Post To Website? *SOLVED!!*
Hey all
Ok so I've been trying to get this stupid script to work for the past 3 hours... I'm HOPING someone in here can help me out!
I'm making a program that communicates with a website, but it's not going so well. I'm trying to POST data, but it won't do it!
Here's what I have going....
Code:
d = "POST /login.asp HTTP/1.1" & vbCrLf & _
"Accept: */*" & vbCrLf & _
"Accept-Language: en-us" & vbCrLf & _
"Content-Type: application/x-www-form-urlencoded" & vbCrLf & _
"Accept-Encoding: gzip, deflate" & vbCrLf & _
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)" & vbCrLf & _
"Host: (host of my site)" & vbCrLf & _
"Content-Length: 14" & vbCrLf & _
"Connection: Keep-Alive" & vbCrLf & _
"Cache-Control: no-cache" & vbCrLf & vbCrLf & _
"Username=Esona"
Now, theoretically that SHOULD work. you send that data to the server, the server accepts it and does it's little thing.. but it doesn't!
the data will send, the server will receive, but it doesn't do anything about the variable I put in (Username=Esona)
does ANYONE have any clue how to do this? In a nutshell, I want to make a program with the login enviorment (usrname/password), when you hit Submit, it goes to http://www.site.com/login.asp, sends the username and password, the site replies back saying "ok, continue"
And in advance, I don't want to use the webbrowser control
Edited by - Esona on 5/13/2004 12:40:39 PM
Post Data To Website Without Loading Browser?
How do i post data that is say stored in some variables in VB, to a remote website using a method similar to Method=Post to post the details. Or is there a simpler way? Also the program needs to be hidden, preferably running as an NT4 Service (if anyone knows how to do that be my guest) so i dont want it to load any browsers, or it can load them but make them invisble to the user.
The reason i want it to be a service is so that it works when Nobdy is logged on.
Send POST Data To Website That Uses Frames
Hi,
I'm trying to send POST data and get response data from a website that uses frames and uses https://
the website is : https://www.lasuperiorcourt.org/civilCaseSummary/index.asp?CaseType=Civil
and, for example, I want to search for case # BC332390
I try to retreive the html data via the XMLhttp method in VBA, but the response text says my browser does not support frames. I'm not even sure if I'm doing this right. Can anyone teach me what is going on in this situation? Thanks.
Brian
INET Using POST
Hi,
I'm using INET to post info to a website outside of mine, the this other website process my postting and response some data that my script have to received, but i can get any data when i used the INET.Execute with "POST", i can only get it with GET, but this website only process POST data. How can i retreived the POST data , or any other sugestion to do this
THanks
Inet Post
Hey
On my website I have a contact form, and i bascially want to emulate that in Visual Basic. The PHP script I am using is this...
<?php
// headers for the email listed below
$headers .= "From: $name <$email>
"; // your email client will show the person's email address like normal
$headers .= "Content-Type: text/plain; charset=iso-8859-1
"; // sets the mime type
$recipient = "$to"; // enter YOUR email address here
$subject = "Contact Form"; // this is the subject of the email
$msg = "Name: $name Email: $email QuestionSuggestion: $question";
mail($recipient, $subject, stripslashes($msg), $headers); // the mail() function sends the message to you
//Once the data is entered, redirect the user to give them visual confirmation
header("location: www.xswap.co.uk");
?>
So from visual basic, presumable using Inet, I need to post to this "emailscript.php", these 4 varibles..
$to
$email
$name
$msg
I've actually done this before but had a hard drive crash, and really can't remember how I achieved it.
Inet / Post
The GET works fine, I can not POST. I have tried several differents syntaxes, this is my current version.
I thought using Http / Inet / Post would be easy....not yet
I am only sending a 100 byte file
Thanks
MLS
Private Sub Form_Load()
Dim vtData As Variant
Dim strData As String
Dim bdone As Boolean: bdone = False
Dim strFile As String: Dim strURL As String: Dim strHeader As String
Dim strPostData As String
'
strURL = "http://xx.xx.xx.xx/test.txt": strFile = "Test.txt"
'icString = 0 ' Data type is Text, else =1 data as byte array
strHeader = "Content-Type: text/plain" & vbCrLf
Me.WaitForResponse
Inet1.Execute strURL, "get", strFile, strHeader
Me.WaitForResponse
Do While Not bdone
strData = strData & vtData
vtData = Inet1.GetChunk(1024, icString) ' Load web page, icString =0 (Data is text
DoEvents
If Len(vtData) = 0 Then bdone = True
Loop
Mid(strData, 1, 6) = "cccccc"
strData = strData & vbCrLf & Date & Str(Time)
strURL = "http://xx.xx.xx.xx/upload2.htm"
strHeader = "Content-Type: text/plain" & vbCrLf & _
"Content-Length: " & Len(strData) & vbCrLf & _
"Connection: Keep-Alive" & vbCrLf & _
"cache -Control: no -cache" & vbCrLf
'
strPostData = "Content-Disposition: form-data; name=file; filename=C:Test.txt" & vbCrLf & _
"Content-Type: text/plain" & vbCrLf
strPostData = strPostData + strData
Inet1.Protocol = icHTTP
Inet1.Execute strURL, "POST", strPostData, strHeader
Do Until Inet1.StillExecuting = False
DoEvents
Loop
End Sub
Using Inet Post ??
Is it possible to login for example
Code:
index.php?board=;action=login2&user=ChR0NiC&passwrd=blah123&cookielength=1440")
But for the passwrd for contain things like the ; # & signs. It does not work for me, I am actually trying to login to a forum using Inet so I can't seem to figure out how to post or anything. Thanks!
POST Using Inet.ocx
GET is easy
inet.openurl('http://www.servername.com/test.pl?KEY=VALUE')
but I need to POST stuff
I can do it with winsock but I figure inet must make it easier.
INet POST->PHP
Hi,
I want to save a record in my Table PHP with this code. But nothing is result ! No error and ... no new record in my table :-(
Help me please....... thank....... :
Dim sURL As String
Dim strFormData As String
Dim sHeader As String
sURL = "http://www.monsite.comadd.php"
strFormData = "Name=MyName"
sHeader = "Content-Type: application/x-www-form-urlencoded" & vbCrLf
With Inet1
.AccessType = icUseDefault
.URL = sURL
.Protocol = icHTTP
.Execute sURL, "POST", strFormData, sHeader
End With
Do While Inet1.StillExecuting = True
DoEvents
Loop
Inet Post Problem..
Private Sub cmdsend_click()
Inet1.Cancel
Inet1.Protocol = icHTTP
Data = "from_prefix_no=" & Text1.Text & "&from_gsm_no=" & txtnonuz.Text & _
"&gsm_puk1_no=" & txtpuk.Text & "&to_prefix_no=" & txtpref.Text & _
"&to_gsm_no=" & txtgitcek.Text & "&mesajstr=" & txtmsg.Text
cURL = "http://aycell.com.tr/msggonder.php"
'Inet1.Execute cURL, "POST", Data, "Content-Type: application/x-www-form-urlencoded"
End Sub
i've an error : Run- time Error '35760';
Cannot coerce type
what should i do?
Inet Post Data
I have been looking at this example to send POST data to a script. Now how do I see what the script outputs? The only way it seems to work is to use Inet.OpenURL but this doesnt send the POST data to the script! Any help??
Post Data With Inet....... Is This Possible ?
Hello To All
Code:
Private Sub SChange_SSLConnect()
Dim strPacket As String, strPostString As String
strPostString = strPostValue
strPacket = "POST " & PostPage & " HTTP/1.1" & vbCrLf
strPacket = strPacket & "Host: " & ServerList.Text & "" & vbCrLf
strPacket = strPacket & "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13" & vbCrLf
strPacket = strPacket & "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" & vbCrLf
strPacket = strPacket & "Accept-Language: en-us,en;q=0.5" & vbCrLf
strPacket = strPacket & "Accept -Encoding: gzip , deflate" & vbCrLf
strPacket = strPacket & "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & vbCrLf
strPacket = strPacket & "Keep-Alive: 300" & vbCrLf
strPacket = strPacket & "Connection: keep -alive" & vbCrLf
strPacket = strPacket & "Referer: https://" & ServerList.Text & "/" & vbCrLf
strPacket = strPacket & "Cookie: " & theCookie & vbCrLf
strPacket = strPacket & "Content-Type: application/x-www-form-urlencoded" & vbCrLf
strPacket = strPacket & "Content-Length: " & Len(strPostString) & vbCrLf & vbCrLf
strPacket = strPacket & strPostString & vbCrLf
SChange.SSL_SendData strPacket
strData = ""
End Sub
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I used SSL to make the above post....... n that work also....
but its 2 slow.........
is there any way that........ i can post this data through Inet ..... i will be realy thankfull to every 1 .
Inet Post Form; Help!
I don't know how to sum this up, but I am trying to post form information from this certain website. I don't know if I am allowed to post it, so i'll try and explain. I am quiet knew to Inet, so i'm not familiar with its procedures and what not. Just to give you an idea, the program I am making is for a website kind of like Myspace, a community site. I am trying to make it where it can auto-add users, only for educational use only and personal. I know of how to post data with the headers and such, but what I need to do is get the source or form data from the friend request page. Why? Before you can request a person, it has a TOKEN data that needs to be sent out. So after getting the TOKEN, I would post the header as such:
Code:
POST /member/sendFriendRequest.do HTTP/1.1
Host: www.stickam.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.stickam.com/member/preSendFriendRequest.do?friendUserId=174571635..Cookie:
I suppose that would be easy, but in order for it to go through I need to add this in the header:
Code:
org.apache.struts.taglib.html.TOKEN=c83a219710b877e070f5d0ebfe17c1e6&message=&addFriendBtn=Send+Request&userName=shadowman_4&friendUserId=174571635
All I know is the TOKEN is a hidden form in the page before posting the data, I really don't know how to explain. Let me try an outline:
1. Go to friend request page.
2. Click Submit.
3. While clicking the submit it sends the data of a hidden form, TOKEN, if the TOKEN does not authorize with the server the add is rejected.
So, go to friend request page, get the data of the hidden form(TOKEN) then send out the headers for the post.
If you have any other suggestions instead of inet, let me know. Also I do not want to use the WebBrowser control, it is icky and it uses too much CPU and is slow. If you know how to do this in winsock, share an example or some sort.
Thank you ,
mikeyy.
POST Data With Inet
Well I'd like to auth my users into the database on my server by having them connect to a webpage, but the problem is my login page uses POST instead of GET, and I'm not sure how to set that up with inet (or any way at all) with VB6. Any help is appreciated, thanks.
Looking For Example Of Inet.Execute Post
Hi all i am looking for example of Inet.Execute post method by passing 2 varibales name and pass to website. I be happy if some one show me how.Thanks
Code:
Inet.Execute "http://www.mysite.com" , "post"
Vb->DB Connection Or Inet POST?
Through VB, i want to add infromation to a database I have on the internet. I know it's possible to connect to a remote mySQL db and all, but would it be wise or stupid to just use the Inet or winsock control to POST data to a PHP script that performs the mySQL commands (all posted data would be encrypted). POST'ing the data is probably not as reliable, but for this application it does not need to be (data may be sent every few minutes).
any suggestions are appreciated.
thanks.
How Come [INET POST RESOLVED]
When I use
TargetDB = "www.mysite.com/service.html"
.Inet1.Execute TargetDB, "GET", "test=45"
the test variable is not sent to the web server?
As a double check it works when I use...
TargetDB = "www.mysite.com/service.html?test=45"
.Inet1.Execute TargetDB
Vb->DB Connect Or Inet POST?
Through VB, i want to add infromation to a database I have on the internet. I know it's possible to connect to a remote mySQL db and all, but would it be wise or stupid to just use the Inet or winsock control to POST data to a PHP script that performs the mySQL commands (all posted data would be encrypted). POST'ing the data is probably not as reliable, but for this application it does not need to be (data may be sent every few minutes).
any suggestions are appreciated.
thanks.
POST With Inet Control
i want to send some values to the internet file.
some codes in the file on the internet.
<%
A=response.form("A")
%>
<body>
<% =A %>
</body>
my vb program....
i use like that...
Inet1.Execute Inet1.URL, "POST", SendMessage("A", "5")
in Inet1_StateChanged....
Do
DoEvents
vtData = Inet1.GetChunk(1024, icString)
strdata = strdata & vtData
Loop Until Len(vtData) = 0
' Save the response to "Return.htm" in the default directory
Re = FreeFile
Open AppPath & "Return.htm" For Output As #Re
Print #Re, strdata
Close (Re)
' Open "Return.htm" with the default browser
Call ShellExecute(Me.hwnd, vbNullString, AppPath & "Return.htm", _
vbNullString, vbNullString, SW_SHOWNORMAL)
but it gives nothing
how can i send a value to the internet files?
Downloading A Website With Inet
Hello,
I know how to download a source of a website with Inet, but how do i get the complete website with all its gifs, jpgs with Inet ?
is there a way ?
Inet Using Post To Send Data VIA PHP
Hey
On my website i have a contact form, and i bascially want to emulate that in Visual Basic. I dont know much about PHP, and my friend have me the code which allowed me to make the contact form. In the HTTP this is what the form does...
<form name="form1" method="post" action="CContact.php">
The the PHP takes over.
<?php
// headers for the email listed below
$headers .= "From: $name <$email>
"; // your email client will show the person's email address like normal
$headers .= "Content-Type: text/plain; charset=iso-8859-1
"; // sets the mime type
$recipient = "someemail@ntlworld.com"; // enter YOUR email address here
$subject = "Contact Form"; // this is the subject of the email
$msg = "Name: $name Email: $email QuestionSuggestion: $question";
mail($recipient, $subject, stripslashes($msg), $headers); // the mail() function sends the message to you
//Once the data is entered, redirect the user to give them visual confirmation
header("location: thankyou.htm");
?>
Ive added inet to my form, as i know this is what you need to use to do this sort of stuff. However I don't really know what im doing TBH. Ive changed the protocal to icHTTP, and I know you have have to use...
Inet1.Execute <To PHP File>, "POST"
But i have no idea how to emulate the html form. ANY advice will be greatly appreciated.
Large Form POST Using Inet?
How do you send a large amount of text, let say a body of an email, via Inet's POST header?
This is what I have so far:
Code:
With frm_Main.Inet1
strOptions = "email=" & emailaddress & "&subject=" & strSubject & "&body=" & strBody
.Protocol = icHTTP
.URL = "http://www.MyWebsite.com/send_email.asp"
.Execute , "POST", strOptions, "Content-Type: application/x-www-form-urlencoded" & vbCrLf
Do Until .StillExecuting = False
DoEvents
Loop
End With
It works for small POST information the strBody can't handle large. The string information gets cut off.
TIA,
Tony
Question About Inet Post Upload
I have a question about what im trying to do with inet.
here is the code im using on the timer
Code:
Private Sub Timer1_Timer()
Dim screenyName As String
Dim curpath As String
Dim timecrap As String
'Assume Timer Intervals is 60000
Static NumMinutes As Long
If NumMinutes >= 2 Then
NumMinutes = 0
Timer1.Enabled = False
DoEvents
screenyName = GetSettingString(HKEY_LOCAL_MACHINE, "SOFTWARECGL AC", "user")
timecrap = Time
Get_Desktop ("ac" & screenyName & ".bmp")
'Inet1.RemoteHost = "ftp://www.domain.net"
'Inet1.UserName = "username"
'Inet1.Password = "password"
'Inet1.URL = "ftp://usernameassword@www.domain.net"
'Inet1.Protocol = icFTP
'Inet1.Execute , "Put ac est.gif /httpdocs/acscreens/test.gif"
Timer1.Enabled = True
Else
NumMinutes = NumMinutes + 1
End If
End Sub
Now what I need to do is in the place of test.gif i need it to be screenyName & timecrap ".jpg"
how owuld i accomplish this with the "" in the excute
Post To .net Webservice Using Inet Control
I am trying to use a .net webservice in a vb6 app, but without using a control i have to then put on the client machines.
i have tried posting data to the webservice using the inet control but i keep getting a malformed url error, i'm not sure if im even posting to the correct place
Code:
wsurl = "http://localhost/Email/Email.asmx/SendEmail"
postdata = "isHTML=true&emailTo=me@blah.co.uk&emailFrom=me@blah.co.uk&Subject=this is a test email&Body=this is the body of the test email&applicationName=testapp2&emailID=test2"
Inet1.Execute wsurl, "POST", postdata
-Using INET Control To Post Data
I have a contact form on a webpage and want to post to it from vb6
The contact php form sends me an email with data. I know it works, because i can enter data manually and it sends fine. I'm tying to use the INET control - here is the code:
Code:
Private Sub Command1_Click()
Dim url As String
Dim data As String
Dim header As String
url = http://www.mysite.com/contactus.php
data = ?txtName=1234&txtEmail=ieie@to.com&txtMessage=eifeijeij
header = Content-Type: application/x-www-form-urlencoded
Inet1.Execute url, "POST", data, header
End Sub
However, nothing goes through. I've tried changing the data to:
"?txtName=1234&txtEmail=ieie@to.com&txtMessage=eifeijeij"
"txtName=1234&txtEmail=ieie@to.com&txtMessage=eifeijeij"
The HTML for the form is as follows:
<p>Send Us a Message:</p>
<form method="post" action="/contactus.php">
<fieldset style="width: 434; height: 220">
<legend>Please complete the form in FULL</legend>
<p><label for="txtName">Name:</label><br />
<input type="text" title="Enter your name" name="txtName"
value="" size="20" /></p>
<p><label for="txtEmail">Email Address:</label><br />
<input type="text" title="Enter your email address" name="txtEmail"
value="" size="20" /></p>
<p><label for="txtMessage">Enter your message/info:</label><br />
<textarea rows="3" cols="50" title="Enter your message" name="txtMessage"
value="">
Edited by - pbeast on 1/11/2007 6:14:22 AM
How To Post Data Use Inet Control
Dear All:
When I use
Inet1.Excute "http://xxx.xxx.xxx/cgi/test1.asp?a=123&b=456", "GET"
in my VB6.0 application , it's OK, I can get information from Inet_StateChange events.
Now I want to use "post"
Inet1.Excute "http://xxx.xxx.xxx/cgi/test1.asp", "POST", "a=123&b=456"
in my VB6.0 application, I can't get right information.
Could you help me to solve this "POST" problem?
Than you!!
Method POST
I have a web submission form which uses the method POST for sending the data to the web server. So far, I have implemented the case of method GET where the query string just attach to the URL but with the method POST I don’t know how to enhance the appropriate query string to the body of HTTP request.
For example, I have the below web Form html source code.
<form name="searchform" action="www.myplace.com" method="POST">
<select name="InputType" style="width: 150px;">
<option value="" selected>Any
<option value="button">Hard Button
<option value="screen">Touchscreen </select>
<input type="text" name="InputModel" size="16" value="">
</form>
If the method was the GET, then it will be easy to submit this web form to the server, because the only you have to do is this:
Webbrowser1.navigate htttp://www.myplace.com?InputeType=&InputeModel=
In the case of method POST how this could be done?
Thanks for reading.
Post Method In VB
I actually need to be able to post data to php pages through the post method. The reason is to post informations on a forum automatically. I think I should be using Microsoft Internet Transfer protocol and his execute method, however i don't know how to post all the variables(i.e. name, title, message, etc...). I can even provide you the source code with the html form that makes the posts normally.
Any tips or pointers would be great, thanks.
Can I Post Using This Method?
i'm using the code:
Set objDocument = objMSHTML.createDocumentFromUrl(URL, vbNullString)
Can I post data from a form using this method, and if so, how?
Thanks,
Dave
Method POST
I have a web submission form which uses the method POST for sending the data to the web server. So far, I have implemented the case of method GET where the query string just attach to the URL but with the method POST I don’t know how to enhance the appropriate query string to the body of HTTP request.
For example, I have the below web Form html source code.
<form name="searchform" action="www.myplace.com" method="POST">
<select name="InputType" style="width: 150px;">
<option value="" selected>Any
<option value="button">Hard Button
<option value="screen">Touchscreen </select>
<input type="text" name="InputModel" size="16" value="">
</form>
If the method was the GET, then it will be easy to submit this web form to the server, because the only you have to do is this:
Webbrowser1.navigate htttp://www.myplace.com?InputeType=&InputeModel=
In the case of method POST how this could be done?
Thanks for reading.
Method POST
This is not a VB question, but may be somebody knows a good place to ask CGI questions (maybe a good forum like this one) or an answer to my problem.
I created a perl script and an html file. the perl script is called when the user presses a button on the webpage. This works fine on my local web server, but not on-line. I've tried at more than one provider. I put the .pl file in xx/cgi-bin and the html file in xx/. When I press the button I was talking about, I get the message
"The requested method POST is not allowed for the URL xx/cgi-bin..
Why?
thanx, ds
Winsock Syntax? (To Request A Website With The Winsock Control)
Ok, I don't know very much about Winsock and am just now starting to use it. I'm making an anonymity program that modifies referer and user agent data. I managed to find an example of how its done on planetsourcecode.com but there's a few things that aren't working.
Anyway, when this string is sent, it sends the headers and a request for index.html from the connected host (winsock1.connect domain.com 80).
GET index.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-comet, */*
Accept-Language: en
Accept-Encoding: gzip , deflate
Cache-Control: no-cache
Proxy-Connection: Keep-Alive
User-Agent: Whatever
Referer: www.whatever.com
But when I used the website http://ipid.shat.net/ as the domain to see if code mdified the headers or not, it directed me instead to just www.shat.net. How would a browser request information to ipid.shat.net?
Also, I noticed that by sending just that information, cookies don't work properly. What other tags do I have to add onto that for it to recieve my session information? Thanks a lot.
Inet Authentication And Send POST To Web Server
As an example, I have a webpage http://127.0.0.1/cgi-bin/test, and it has web directory authentication.
How do I use Inet Control or any web control to login to the
webpage and send some string by using POST to that webpage ?
Using Inet To Access A Website And Save Information
K as im fairly new to programming Im making a program for myslef and my friends website but here is my question.
I got a list of websites i want to pull information off of and have it load into a list box and continue to grab the information all the way down the list untill the list stopps anyone help me out here as i been lookin everywhere for some help. I dont have any code to provide as i dont know where 2 start with this but this is what i got so far I got a load button that loads in a list of the websites into one of the list box's now i just need to connect to each site and pull the desired info off the site and have that info placed into another listbox to save later
Thanx if anyone can help me out
Refreshing A POST Method With IE 6.0
I am develponing an automated version of I.E. 6.0 that does various things, one that has been giving me problems is refreshing a page that was the result of a posted form. I am using the Webbrowser Control's Refresh2 Method. The problem I am running into is that this is a completely unattended version of IE 6.0 and refreshing a post method bring up a Internet Explorer security dialog box that says "the page cannot be refreshed without resending the information....". I have given up on trying to eliminate this box, but does any one have any ideas of how to control the box with the program? I have tried the Silent() method with no luck. Any ideas would be greatly appreciated. Thanks!
Using A Form Post Method In Vb
hello friends
i have a vb form using which i need to address the php page
on some server...
now for that purpose i have used the querystring which works fine in some cases when the request Get Method is used butttttt
Problem
1.The page on the server has used the(((( Request Post Method )))))instead of Get ..... now here my query string fails me ...... i have included the ASP Type Library
like
Dim a as asptypelibrary.request
now there is a(( mehtod name form ))
a.form (var)
it needs a parameter like (var ) but i dont know how to use this in vb.....
problems every where
2. i have added a dhtml Project but coz never used it b4 same is the case there 2.......
3. Also if i can read the response generated by the server in VB ????
Do Help me friends/...
How Do You Code A Method = Post In VB
I have to send data to another domain/url via the post method. If the url name is https://theirwebaddress.com and I need to send two text fields first and last name.
How would you code this in VB.net
Thanks
Http Post Method
Hi All,
I need help on the Http Post Method. Does anyone have a Post method example? I know it might be really simple.
I want to create some thing like this: the user clicks on a command button and takes the data from a text box and sends the data from the text box to a server.
Thanks
Chung331
"Don't Worry Be Happy"
|