Re: (thx) Re: automating a POST

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40578
interpreted = N
texte = on 6/12/02 4:54 PM, Donovan at donovan@ns1.ddbproductions.org so noted...> well unfortuneately I think Rob is correct... I tested this and my trigger is > not seeing the javascript. This would be nice though as I believe the docs > say a trigger is just like hitting a page with your browser... why not java > support in a trigger??/ > Scott? > So any hoo.. it don't work.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 Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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:

    
on 6/12/02 4:54 PM, Donovan at donovan@ns1.ddbproductions.org so noted...> well unfortuneately I think Rob is correct... I tested this and my trigger is > not seeing the javascript. This would be nice though as I believe the docs > say a trigger is just like hitting a page with your browser... why not java > support in a trigger??/ > Scott? > So any hoo.. it don't work.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 Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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/ Rob Marquardt

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:

ShipCosts database (1997) Question (1997) 301 redirect (2008) What week is first? (1998) Browser Info.txt (1997) Re:trouble (1997) international time (1997) emailer (1997) WC2.0 Memory Requirements (1997) syntax question, not in online refernce (1997) Associative lookup style? (1997) Search in 2 or more catalogs (1997) greater than or equal to (1997) 4.5 -> 6.0 Upgrade (2005) Solve the Problem, get the code! (2001) unable to launch acgi in WebCat (1997) New WebDNA Forum Solution (in development) (2003) WebCat b13 CGI -shownext- (1997) Generating Options for a Form. (1997) Another IfThenElse question.. (2003)