Re: POST through TCPConnect

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24199
interpreted = N
texte = You didn't send any values inside the tcpsend context.>I am attempting to use a POST command through [TCPConnect] to write to >two databases simultaneously on two different servers. While I can get >the [replace] context to work on both servers, only the local server's >data seems to use the information from the form on the preceding page. >The information on the remote server is simply replaced by empty >variables. > >Here is what I am doing - perhaps someone can point me in the correct >direction: > >----------Page One---------- >
> > > > >
> > >----------Page Two---------- >[replace db=my.db&sku=[sku]]desc=[desc]&price=[price][/replace] >[tcpconnect host=myhost.com] >[tcpsend]POST page3.tmpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend] >[/tcpconnect] > > >----------Page Three---------- >[replace db=my.db&sku=[sku]]desc=[desc]&price=[price][/replace] > > >These are snippets of the code from each page. Each page starts with >the required . Pages One and Two are located on >the local server, while page three is located on the remote server. >When viewing the database from each server, here are the results: > > >----------Local Server DB---------- >sku desc price >101 description 100.00 > > >----------Remote Server DB---------- >sku desc price >101 [desc] [price] > > >Obviously, the [replace] context on page three ran on the remote server >as it should have, but, for some reason, it did not use the information >sent to it by the POST command. What am I missing here? > >Thanks in advance, > >Dennis > > > > >------------------------------------------------------------- >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. >To end your Mail problems go to . > >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 Kenneth Grome WebDNA Consultant Phone 808-737-6499 http://webdna.net------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: POST through TCPConnect (Dennis J. Bonsall, Jr. 1999)
  2. Re: POST through TCPConnect (Kenneth Grome 1999)
  3. POST through TCPConnect (Dennis J. Bonsall, Jr. 1999)
You didn't send any values inside the tcpsend context.>I am attempting to use a POST command through [tcpconnect] to write to >two databases simultaneously on two different servers. While I can get >the [replace] context to work on both servers, only the local server's >data seems to use the information from the form on the preceding page. >The information on the remote server is simply replaced by empty >variables. > >Here is what I am doing - perhaps someone can point me in the correct >direction: > >----------Page One---------- >
> > > > >
> > >----------Page Two---------- >[replace db=my.db&sku=[sku]]desc=[desc]&price=[price][/replace] >[tcpconnect host=myhost.com] >[tcpsend]POST page3.tmpl HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend] >[/tcpconnect] > > >----------Page Three---------- >[replace db=my.db&sku=[sku]]desc=[desc]&price=[price][/replace] > > >These are snippets of the code from each page. Each page starts with >the required . Pages One and Two are located on >the local server, while page three is located on the remote server. >When viewing the database from each server, here are the results: > > >----------Local Server DB---------- >sku desc price >101 description 100.00 > > >----------Remote Server DB---------- >sku desc price >101 [desc] [price] > > >Obviously, the [replace] context on page three ran on the remote server >as it should have, but, for some reason, it did not use the information >sent to it by the POST command. What am I missing here? > >Thanks in advance, > >Dennis > > > > >------------------------------------------------------------- >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. >To end your Mail problems go to . > >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 Kenneth Grome WebDNA Consultant Phone 808-737-6499 http://webdna.net------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Kenneth Grome

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:

View order not right (1997) multi-paragraph fields (1997) Fw: [SQL] and [index] mystery solved (2001) Lots of bounce errors (2007) Generating unique SKU from [cart] - Still Stumped... (1997) UPDATE PROBLEM (1997) WCS Newbie question (1997) setitems, one more thing (1997) HELP WITH DATES (1997) CA tax rates update (1998) Kinda [OT] Leopard & iTools (2008) The future of WebCatalog is coming with 4.0... (2000) WebCatalog 2.1b4/Mac available (1997) Up and running ... at last !! (1997) WC 2.0 frames feature (1997) New WebCatalog site! (1997) View order not right (1997) Stinkin' [Referrer] (1998) Wanted: Broader string manipulation functions (1997) upgrade? (1997)