|
-
Jan 16th, 2000, 05:17 AM
#1
Thread Starter
Member
How can I fill out a web form using vb??
my problem is that the form is POST so i cant pass argument by:
file.cgi?&name=lol&pw=pw
can anyone help?
------------------
[email protected]
http://www.hackvp.com
I may be dumb, but I am not stupid!
-
Jan 16th, 2000, 06:51 AM
#2
Junior Member
I believe your mistake is that you do not need the first ampersand. It should look like this:
file.cgi?name=lol&pw=pw
-B4
-
Jan 16th, 2000, 12:15 PM
#3
Thread Starter
Member
What I was trying to get at was that I cant pass arguments that way, weather the correct syntax is used or not. This is because of the form i want to fill out uses POST instead of GET. Any ideas?
------------------
[email protected]
http://www.hackvp.com
I may be dumb, but I am not stupid!
-
Jan 16th, 2000, 07:13 PM
#4
-
Jan 17th, 2000, 06:17 AM
#5
Thread Starter
Member
I kind of get it. Maybe a small example on how to fill out:
http://www.theglobe.com/registration/default.taf would be nice! Thanks
------------------
[email protected]
http://www.hackvp.com
I may be dumb, but I am not stupid!
-
Jan 18th, 2000, 01:00 AM
#6
Frenzied Member
Oh, sorry, no - the variables are passed in the HTTP request body, not the header. That's why they come after the blank line.
[This message has been edited by HarryW (edited 01-18-2000).]
-
Jan 18th, 2000, 12:53 PM
#7
Frenzied Member
Ok, that's quite a complex form, but the theory is simple. You said you understood the GET method but not the POST method - there really isn't much difference. The difference is that the variables you pass between pages are passed in the HTTP header instead of being added to the end of the address. However, to you it doesn't matter particularly where the variable is passed, only how to get at it 
OH I SEE! you want to actually fill the form out - you're not designing the page 
Sorry, I just wasn't expecting it.
You need to pass, using your example, the following line in your HTTP request header. after the "Content-length: " line and a mandatory blank line, you need to send:
name=lol&pw=pw
Since I've only really spent time on ASP from the point of view of server-side scripting, I know how to retrieve this information, but I'm not sure how you would put it there.
Hmm, I'll have a good think about it, but meanwhile you might want to post a new thread asking how to edit the HTTP request header you send to the server.
I wish you luck; I'll keep trying to find the answer.
Harry
-
Jan 18th, 2000, 06:51 PM
#8
Frenzied Member
There is an article on HTTP headers here that might be useful
http://www.asptoday.com/articles/19990304.htm
-
Jan 18th, 2000, 06:54 PM
#9
Frenzied Member
-
Jan 18th, 2000, 07:19 PM
#10
Frenzied Member
It looks like that second URL's just about exactly what you need, but it involves an ActiveX component which you have to pay for, called ASPSock. I gather from the page that it's a and ActiveX server component which lets you make direct connections through Winsock to a web server, using your dial-up connection.
You might want to ask around on this furum for such a component, though. It's the kind of thing some people do around here, I think.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|