Re: (thx) Re: automating a POST

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40594
interpreted = N
texte = This works spiffy. :-) thanks. D Rob Marquardt wrote:> [snip] > > 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.-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> 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:

    
This works spiffy. :-) thanks. D Rob Marquardt wrote:> [snip] > > 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.-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> 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:

[WebDNA] problems with [protect] on new OSX lion install (2012) HELP WITH DATES (1997) REPOST: WebCat & WebSTAR V (2002) How far do [showif]s go? (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) [OT] - Block Traffic to DevBox (2003) Math Hell! (2000) change the number format (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) authorizenet and netscape (2002) Credit Card not accepted (1998) quantity minimum problem (1997) New Site WebCat (1997) form data submission gets truncated (1997) unsubscribe (1997) Extended [ConvertChars] (1997) HELP WITH DATES (1997) WebCat2 - Getting to the browser's username/password data (1997) [format xs] freeze (1997) This list needs a digest: rant, rave... (1997)