Re: http post
- From: "Mike Gagnon" <mgagnon23@xxxxxxxxxxx>
- Date: Wed, 25 May 2005 05:43:57 -0400
> The parts that involve clicking on links are not clear from their example.
> If there is anything you can add I would appreciate hearing about it.
If you are able to get to the login page without problems, and fill-in the
required values (I will assume you can do that).
Call the function that will get you to go on. You should be able to find it
in the source code of the page. Here is an example of source code from a
website.
Looking at this I would try something like:
oInt.DocumentLogin.Submit()
This would technically be the same as clicking the submit button on a
webpage.
function FormLogin()
{
Key = window.event.keyCode;
if (Key == 32)
{
javascript:document.Login.submit()
window.event.keyCode = 0
event.returnValue = false
}
}
Set_Cookie('Langue','0')
document.Login.Username.focus()
lcUsername=Get_Cookie("Username")
if (lcUsername)
{
document.Login.Username.value=lcUsername
}
lcPassword=Get_Cookie("Password")
if (lcPassword)
{
document.Login.Password.value=lcPassword
}
lcRemember=Get_Cookie("Remember")
if (lcRemember)
{
document.Login.Remember.checked=true
"Jeff Grippe" <jgrippe@xxxxxxxxxxx> wrote in message
news:1196edvqonno7f9@xxxxxxxxxxxxxxxxxxxxx
> Thanks for the reply.
>
> Actually I am already an owner of the west-wind tools but their sample
> code doesn't answer all of my questions.
>
> For the session that I need to automate I need to:
> go to the URL
> click on the sign in link (I suppose I can go directly to the sign in url)
> sign in (fill in a form)
> click on a link to get to the section that I need
> fill in an upload dialog
> wait for the upload to complete (60-90 seconds)
> logoff (another link)
>
> The parts that involve clicking on links are not clear from their example.
> If there is anything you can add I would appreciate hearing about it.
>
> Thanks again,
> Jeff
> "William Fields" <Bill_Fields@xxxxxxxxxxxxxxxx> wrote in message
> news:OvbBp49XFHA.3716@xxxxxxxxxxxxxxxxxxxxxxx
>> Also, check out the wwHTTP class at www.west-wind.com
>>
>> The benefit to using programmatic HTTP Get/Post interactions is that you
>> cannot do file uploads with IE automation or the WebBrowser ActiveX
>> control.
>>
>> --
>> William Fields
>> MCSD - Microsoft Visual FoxPro
>> US Bankruptcy Court
>> Phoenix, AZ
>>
>> "If it's free, I'll take three!"
>>
>>
>>
>> "Mike Gagnon" <mgagnon23@xxxxxxxxxxx> wrote in message
>> news:u8$%23Up6XFHA.228@xxxxxxxxxxxxxxxxxxxxxxx
>>> http://www.tek-tips.com/faqs.cfm?fid=4359
>>>
>>> "Jeff Grippe" <jgrippe@xxxxxxxxxxx> wrote in message
>>> news:1193pvu2cjlsd2f@xxxxxxxxxxxxxxxxxxxxx
>>>> Hello again and thanks in advance for the help.
>>>>
>>>> I assume that tools which include the ability to proces HTTP post
>>>> information give you the ability to code web interactions, fill in
>>>> forms, etc.
>>>>
>>>> Can anyone point me to either some sample code that does this or some
>>>> documents that describe the basics of this type of interaction.
>>>>
>>>> I need to automate the interaction with a website where I have to login
>>>> in, click on a few links, complete an upload file dialog, and then log
>>>> off.
>>>>
>>>> Right now I am using MacroExpress which works pretty well but is also
>>>> easily "upset" by other environment changes?
>>>>
>>>> Any help would be appreciated.
>>>>
>>>> Thanks,
>>>> Jeff
>>>>
>>>
>>>
>>
>>
>
>
.
- References:
- http post
- From: Jeff Grippe
- Re: http post
- From: Mike Gagnon
- Re: http post
- From: William Fields
- Re: http post
- From: Jeff Grippe
- http post
- Prev by Date: Re: How can I check for empty dates on SQL Server?
- Next by Date: Cursors in a shared environment
- Previous by thread: Re: http post
- Next by thread: Re: http post
- Index(es):