What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Programming "Method Post"

Pages: (2): « First [ 1 ] 2 » Last »
Programming "Method Post"
Author: Message:
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. Huh?  Programming "Method Post"
How do I program (In VB 6.0) to submit data to a website using Method="Post"?

I'm very confused but wan't to try none the less.

[Image: Email.JPG]
10-03-2004 04:00 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Programming "Method Post"
Well you could setup the page to read data and compare it...

index.php?text=this is my text

code:
<?
echo $text;
?>

I think you can do this using the WinHTTP library but it would be easier to use a Website Control to just navigate a hidden browser on your form to that page with the text.

This post was edited on 10-03-2004 at 04:05 AM by matty.
10-03-2004 04:03 AM
Profile E-Mail PM Find Quote Report
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: Programming "Method Post"
quote:
Originally posted by Matty.
navigate a hidden browser on your form

Lol i thought of that but lets say... There is a text box on this hidden browser, how do i tell it to fill it then how do i tell it to click the submit button?

[Image: Email.JPG]
10-03-2004 04:08 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Programming "Method Post"
I THINK its WebBrowser1.Document['textbox'] = "' I THINK, now I cant remember exactly, but its the document part of the object.
10-03-2004 04:11 AM
Profile E-Mail PM Find Quote Report
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: Programming "Method Post"
quote:
Originally posted by Matty.
I THINK its WebBrowser1.Document['textbox'] = "' I THINK, now I cant remember exactly, but its the document part of the object.

It doesnt work, i get "Object Variable or width variable not set"

I had this line of code:
code:
MsgBox WebBrowser1.Document("username")
i did msgbox for debuging

EDIT

now i typed

code:
MsgBox WebBrowser1.Document = "username"

it says "FALSE"

This post was edited on 10-03-2004 at 04:41 AM by michael_m91.

[Image: Email.JPG]
10-03-2004 04:36 AM
Profile E-Mail PM Web Find Quote Report
dotNorma
Veteran Member
*****

Avatar

Posts: 1745
Reputation: 17
33 / Male / –
Joined: May 2003
RE: Programming "Method Post"
code:
Private Sub Web1_DocumentComplete(ByVal pDisp As Object, URL
As Variant)
     If (pDisp Is Web1.object) Then
         While Web1.Busy
             DoEvents
         Wend
         If URL = "https://gmail.google.com/" Then
             If InStr(Web1.Document.documentElement.outerHTML, "A
Google approach to email.") <> 0 Then
                 Web1.Document.frames(0).Document.All("Email").Value =
"<Your Email>"
                 Web1.Document.frames(0).Document.All("Passwd").Value
= "<Your Pasword>"
                 Web1.Document.frames(0).Document.All("null").Click
             End If
     End If
     Exit Sub
End Sub


Here is how to log-in at the gmail page for example.
10-04-2004 02:15 AM
Profile PM Web Find Quote Report
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: Programming "Method Post"
Thanks that helped alot but im still getting errors

code:
Private Sub Form_Load()
WebBrowser1.Navigate "http://shoutbox.menthix.net/basicsearch.php"
End Sub

Private Sub Webbrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    If (pDisp Is WebBrowser1.object) Then
        While WebBrowser1.Busy
            DoEvents
        Wend
        If URL = "http://shoutbox.menthix.net/basicsearch.php" Then
            If InStr(WebBrowser1.Document.documentElement.outerHTML, "Keywords:") <> 0 Then
                WebBrowser1.Document.frames(0).Document.All("keywords").Value = "Help"
                WebBrowser1.Document.frames(0).Document.All("Username").Value = "michael_m91"
                WebBrowser1.Document.frames(0).Document.All("null").Click
            End If
        End If
    End If
    Exit Sub
End Sub


Trying to do a Msgplus search

This post was edited on 10-04-2004 at 04:06 AM by michael_m91.

[Image: Email.JPG]
10-04-2004 03:55 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Programming "Method Post"
WTF? You don't need to use POST for that. In fact, I started converting the script to pure GET.

http://shoutbox.menthix.net/basicsearch.php?do=se...keywords&uid=28611

BTW, please don't use scripts/programs to access the board in ways you weren't meant to. I'll just ban you. :p
10-04-2004 03:47 PM
Profile PM Web Find Quote Report
michael_m91
Full Member
***


Posts: 371
Reputation: 1
33 / Male / –
Joined: Jan 2004
O.P. RE: Programming "Method Post"
quote:
Originally posted by WDZ
WTF? You don't need to use POST for that. In fact, I started converting the script to pure GET.

http://shoutbox.menthix.net/basicsearch.php?do=se...keywords&uid=28611

BTW, please don't use scripts/programs to access the board in ways you weren't meant to. I'll just ban you. :p

I was trying to make a program for the search for myself so I can search from Messenger Itself.:'(

And whats this? http://shoutbox.menthix.net/basicsearch.php?do=se...keywords&uid=28611

This post was edited on 10-04-2004 at 07:56 PM by michael_m91.

[Image: Email.JPG]
10-04-2004 07:51 PM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Programming "Method Post"
quote:
Originally posted by michael_m91
And whats this? http://shoutbox.menthix.net/basicsearch.php?do=se...keywords&uid=28611
Instead of submitting the search with a POST-method form, just open that URL! You can edit it however you want, and opening it will show you the search results. :-/
10-04-2004 08:00 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On