Re: (thx) Re: automating a POST

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40589
interpreted = N
texte = Thanks Rob, as long as there is a way to do this... It comes up in conversation consistantly about every month or two, I'll try your code below.DonovanRob Marquardt wrote:[snip] Having triggers support Javascript in a returned page would require WebDNA> to have a built-in Javascript interpreter, which I think would be Pretty > Scary (besides, I'd rather SM got triggers working under WebTen before they > even thought about such a thing! : ) > > It's easy to have WebDNA do the form post on its own, though. All you need > to know are the variable names of the form elements, what values you want to > put in them, and what page the form's action parameter points to. > > [text]CRLF=[unURL]%0D%0A[/unURL][/text] > > [text]formData=[!] > [/!]var1=[url]value to assign to this form variable[/url]&[!] > [/!]var2=[url]more of the same[/url]&[!] > [/!]var3=[url]for as many as needed[/url][!] > [/!][/text] > > [TCPConnect host=www.domain.com&port=80][!] > [/!][TCPSend]POST /path/to/forms/action/page.html HTTP/1.0[!] > [/!][CRLF]Referer: http:/[thisURL][!] > [/!][CRLF]User-Agent: WebDNA[!] > [/!][CRLF]Host: www.domain.com:80[!] > [/!][CRLF]Content-type: application/x-www-form-urlencoded[!] > [/!][CRLF]Content-length: [countChars][formData][/countChars][!] > [/!][CRLF][!] > [/!][CRLF][formData][!] > [/!][CRLF][/TCPSend][/TCPConnect] > > If the site is password-protected (via a realm) you can add > > [/!][CRLF]Authorization: Basic [encrypt method=base64]pass:user[/encrypt][!] > > in with the other headers. > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com >-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
Thanks Rob, as long as there is a way to do this... It comes up in conversation consistantly about every month or two, I'll try your code below.DonovanRob Marquardt wrote:[snip] Having triggers support Javascript in a returned page would require WebDNA> to have a built-in Javascript interpreter, which I think would be Pretty > Scary (besides, I'd rather SM got triggers working under WebTen before they > even thought about such a thing! : ) > > It's easy to have WebDNA do the form post on its own, though. All you need > to know are the variable names of the form elements, what values you want to > put in them, and what page the form's action parameter points to. > > [text]CRLF=[unurl]%0D%0A[/unURL][/text] > > [text]formData=[!] > [/!]var1=[url]value to assign to this form variable[/url]&[!] > [/!]var2=[url]more of the same[/url]&[!] > [/!]var3=[url]for as many as needed[/url][!] > [/!][/text] > > [TCPConnect host=www.domain.com&port=80][!] > [/!][tcpsend]POST /path/to/forms/action/page.html HTTP/1.0[!] > [/!][CRLF]Referer: http:/[thisurl][!] > [/!][CRLF]User-Agent: WebDNA[!] > [/!][CRLF]Host: www.domain.com:80[!] > [/!][CRLF]Content-type: application/x-www-form-urlencoded[!] > [/!][CRLF]Content-length: [countchars][formData][/countChars][!] > [/!][CRLF][!] > [/!][CRLF][formData][!] > [/!][CRLF][/TCPSend][/TCPConnect] > > If the site is password-protected (via a realm) you can add > > [/!][CRLF]Authorization: Basic [encrypt method=base64]pass:user[/encrypt][!] > > in with the other headers. > > Rob Marquardt > Designer/Resident Wirehead > Toast Design > > 800 Washington Avenue North > Minneapolis MN 55401 > 612.330.9863 v > 612.321.9424 f > www.toastdesign.com >-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ ------------------------------------------------------------------------ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Donovan

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

db merge problem (2002) Comments in db? (1997) Targeted Redirect (1999) About the Allow 'Absolute Path' Prefix (2002) Has anyone used WebCatalog with CGatePro? (2000) [ShowIf] if the varieable exists (1998) [moveFile] Question (1999) search with funny characters (2003) dynamic PDF no longer working? (2004) Any Newsletters out there (1998) Help! WebCat2 bug (1997) TCPConnect / TCPSend to Solaris NN Enterprise (2002) Emailer port change (1997) Purchase command error problem (1997) More on the email templates (1997) Frames and WebCat (1997) Can this be done? (1997) Emailing html (1998) WebDNA Solutions ... sorry! (1997) WebCat2final1 crashes (1997)