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.DRob 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.DRob 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:
Archive Problem (2000)
Questions To Answer (1997)
redirect problem - bug? (2003)
Separate SSL Server (1997)
WebCat2b13MacPlugIn - more [date] problems (1997)
Problem using # in my field names ... (1998)
RAM variables (1997)
[WebDNA] Now: Listfields does not work with tables - Was: [OT] (2011)
WebCat2 several catalogs? (1997)
Help! WebCat2 bug (1997)
PCS Frames (1997)
Textarea Breaks (2000)
Dealer locator (1998)
Webalizer 4.5.0 [sendmail] on RH Linux 7.3 with qmail (2003)
Using Plug-In while running 1.6.1 (1997)
Document Contains No Data! (1997)
template includes encrypted template (1999)
Generating unique SKU from [cart] - Still Stumped... (1997)
PCS Emailer's role ? (1997)
Zeroing out shipping costs (2000)