Re: tcpsend
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38455
interpreted = N
texte = Oops, although ... [FormVariables] is not a good name for your form variables. : c)Marc Kaiwi wrote:> This is something that always comes up and someone (SM) should document it!!!!!>> Here is a working copy that I use:>> [!]******************************************[/!]> [!]* Stuff a long string variable *[/!]> [!]******************************************[/!]> [text]FormVariables=variable1=[x]&variable2=[y][/text]>> [!]******************************************[/!]> [!]* LineFeed only for mac text file *[/!]> [!]******************************************[/!]> [text]LF=[unURL]%0A[/unURL][/text]>> [!]******************************************[/!]> [!]* Send it off and display the results *[/!]> [!]******************************************[/!]> [text Show=F]Response=[!]> [/!][Middle StartAfter=&EndBefore=]> [tcpconnect host=www.domain.com &port=80]> [TCPsend]POST /somepage.tpl HTTP/1.0> [LF]Host: www.myhost.com> [LF]Referer: http://www.foo.net> [LF]User-Agent: Mozilla/4.5 (Macintosh; I; PPC)> [LF]Content-type: application/x-www-form-urlencoded> [LF]Content-length: [countchars][FormVariables][/countchars]> [LF]> [LF][FormVariables]> [LF][/TCPSend]> [LF][/tcpconnect]> [/Middle][/text]>> [!]******************************************[/!]> [!]* END *[/!]> [!]******************************************[/!]>> Hope this helps .... good luck>> Marc Kaiwi>> Arturo Vargas wrote:>> > I tried to figure out this by myself, and I think I was getting an idea by> > looking at the archives, but they keep going down.> >> > I need to send some variables using tcpconnect:> >> > if the page was on my server I would just send it on a link> > http:www.domain.com/test.tpl?variable1=[header1]&variable2=[header2]> >> > to do the same using tcpconnect I think I would do something like this:> > [tcpconnect host=www.domain.com &port=80]> > [TCPsend]POST /test.tpl?variable1=[header1]&variable2=[header2]> > HTTP/1.0[UnURL]%0D%0A%0D%0A[/UnURL]> > [/TCPSend]> > [/tcpconnect]> >> > is this right?> >> > ART>> -------------------------------------------------------------> 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/-------------------------------------------------------------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:
Oops, although ... [formvariables] is not a good name for your form variables. : c)Marc Kaiwi wrote:> This is something that always comes up and someone (SM) should document it!!!!!>> Here is a working copy that I use:>> [!]******************************************[/!]> [!]* Stuff a long string variable *[/!]> [!]******************************************[/!]> [text]FormVariables=variable1=[x]&variable2=[y][/text]>> [!]******************************************[/!]> [!]* LineFeed only for mac text file *[/!]> [!]******************************************[/!]> [text]LF=[unurl]%0A[/unURL][/text]>> [!]******************************************[/!]> [!]* Send it off and display the results *[/!]> [!]******************************************[/!]> [text Show=F]Response=[!]> [/!][Middle StartAfter=&EndBefore=]> [tcpconnect host=www.domain.com &port=80]> [tcpsend]POST /somepage.tpl HTTP/1.0> [LF]Host: www.myhost.com> [LF]Referer: http://www.foo.net> [LF]User-Agent: Mozilla/4.5 (Macintosh; I; PPC)> [LF]Content-type: application/x-www-form-urlencoded> [LF]Content-length: [countchars][formvariables][/countchars]> [LF]> [LF][formvariables]> [LF][/TCPSend]> [LF][/tcpconnect]> [/Middle][/text]>> [!]******************************************[/!]> [!]* END *[/!]> [!]******************************************[/!]>> Hope this helps .... good luck>> Marc Kaiwi>> Arturo Vargas wrote:>> > I tried to figure out this by myself, and I think I was getting an idea by> > looking at the archives, but they keep going down.> >> > I need to send some variables using tcpconnect:> >> > if the page was on my server I would just send it on a link> > http:www.domain.com/test.tpl?variable1=[header1]&variable2=[header2]> >> > to do the same using tcpconnect I think I would do something like this:> > [tcpconnect host=www.domain.com &port=80]> > [tcpsend]POST /test.tpl?variable1=[header1]&variable2=[header2]> > HTTP/1.0[unurl]%0D%0A%0D%0A[/UnURL]> > [/TCPSend]> > [/tcpconnect]> >> > is this right?> >> > ART>> -------------------------------------------------------------> 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/-------------------------------------------------------------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/
Marc Kaiwi
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:
Looking for work (2005)
Search Command, multiple dbs, etc. --still confused (2000)
Don't tick me off :) [elaspedtime] (1997)
math on date? (1997)
Make sure I understand this??? (1997)
RE: PIXO support (1997)
PR: WebCatalog Affiliates Program Announced -- Share the (2000)
Re[5]: Problem with new formvariables (2000)
Re:Variable Math (1998)
StoreBuilder help/question (2000)
Order not created error (1997)
Expiration of Carts (1997)
PCS Frames (1997)
Proper file locations (1997)
Webcat/Webmerchant (1998)
Deleting Orders (1997)
Type 11 errors setting up WebCAt 2 (1997)
Universal root for WC errors? (1997)
Shipping cost out of synch (1998)
Reversed words (1997)