Re: http post

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



> 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
>>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: developing tracking
    ... You can have an automated system (source code ... as to what the actual changes are, there's really no way to automate this ... ' MergeSingleWord "Customers" ... ' The above would use/create the templates in a dir called Customers ...
    (microsoft.public.access.formscoding)
  • Re: Web App Script Capture
    ... In fact, with this particular app, I am able to upload arbitrary files ... However, since it is an open source app, I took a "short cut" by looking at the ... work-around for that problem (stealing source code). ... Information Assurance Certification Review Board ...
    (Pen-Test)
  • Re: ruby.exe crashing on windows xp
    ... There is nothing printed in the development log (i.e. there is no stack ... You can upload the source code to GitHub for free. ...
    (comp.lang.ruby)
  • Re: Multiple File upload or download
    ... a source code based solution. ... >I have been told they wan't the ebilty to version control directories, ... So I have the file upload and download working great, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: NC100 Z80 Assembly Language Programming !
    ... I'll be able to go forward and upload to the NC the progs you ... Will you release the source code too when it'll be finish? ... All I need is a correct text editor, a decent macro Z80 assembler and an ...
    (comp.sys.amstrad.8bit)