Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: Submit a Web
Ezes
enz@fibertel.com.ar

From: Buenos Aires, Argentina
Posts: 7
Member Since: 03/28/03
posted January 27, 2004 4:23 PM

I'd like to know how can I do the following:

Example:

Goto Yahoo.com
Make a Search and have the Result page.

In the real case I know the field name where I'd like to insert something and submit after that...
How can I do it by posting with Webtool?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 27, 2004 4:35 PM

There's no simple answer to this. Basically you have to figure out what needs to done before I can tell you how to do it with the Web Tool.

Usually you have to Post some variables that are added to the request as a string. Take a look at the PostDemo sample to help you get started.

If you looked at the sample and are still having trouble, you should contact our sales department to find out what it will take to get a custom sample written for you.
Ezes
enz@fibertel.com.ar

From: Buenos Aires, Argentina
Posts: 7
Member Since: 03/28/03
posted January 27, 2004 5:19 PM

Let me explain again...
I have done something with the WebControl Component that comes with VB6. I insert in a User Field , the user name and submit the file with a method called submit. Now, the question is the following. How can I do the same with Webtool component.
here is the web: http://www.aag.com.ar/homehandi.asp

I want to insert something in the "Matricula" field and "click" in the button "Buscar".
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 27, 2004 5:24 PM

You have to somehow figure out exactly what is sent when you press "Buscar". I would recommend getting "sniffer" program (like ethereal) and use it to spy on an IE session.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 27, 2004 5:28 PM

I just did this using ethereal and here is what I got:

POST /homehandi.asp HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Referer: http://www.aag.com.ar/homehandi.asp
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Host: www.aag.com.ar
Content-Length: 69
Connection: Keep-Alive
Pragma: no-cache
Cookie: ASPSESSIONIDSQTTCRCR=CPHAAIMCBAMICEHFGHHLLAFD

hdnExecute=Consultar&txtMatricula=testmatric&txtApellido=testapellido


Ezes
enz@fibertel.com.ar

From: Buenos Aires, Argentina
Posts: 7
Member Since: 03/28/03
posted January 27, 2004 7:08 PM

I didn't understand what you just replied to me...

What's the code for doing what i want to, if there is one to...?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 27, 2004 7:48 PM

I'm showing you what IE sent. You can use that information to try and figure out what you need to Post.

It looks like you need to add the "Referer" header line and then post the variables as they are defined in the body of the request.

You should be able to figure out what you need to do by looking at the PostDemo sample.

Again, If you looked at the sample and are still having trouble, you should contact our sales department to find out what it will take to get a custom sample written for you.
Ezes
enz@fibertel.com.ar

From: Buenos Aires, Argentina
Posts: 7
Member Since: 03/28/03
posted January 28, 2004 9:52 AM

Ok. thanks...Bye the way ...How did you get all that information that you sent to me, the one you told me IE sent. How can I get it?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 28, 2004 9:59 AM

I used Ethereal. You can get it from:

http://www.ethereal.com
carpanelli

From: Buenos Aires, Argentina
Posts: 3
Member Since: 09/23/05
posted September 23, 2005 8:50 AM

I am Ezes partner and we have some problems with the page: www.aag.com.ar/handicap.asp . They change the configuration and now we have no access. I will appreciate if you could help to know how to submit the same form we asked you before.

"I want to insert something in the "Matricula" field and "click" in the button "Buscar"."

I want to do this but with de webtool component.
If it is possible, I will be very grateful if you could post me the etheral information.

thank you.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 23, 2005 8:57 AM

This request would be too advanced for the forum. With the info already provided and assistance from the web master at the site, you should be able too figure out what you need to do.

If you are still not able to solve the problem, please contact support@dart.com to discuss alternate solutions.

carpanelli

From: Buenos Aires, Argentina
Posts: 3
Member Since: 09/23/05
posted September 23, 2005 9:10 AM

Ok, thank you all the same.

The problem i have now is that the variables are sent by the method GET instead of post. So I have to simulate de click of the submit. Is that possible?
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX