POST through TCPConnect

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24198
interpreted = N
texte = 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 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)
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 Dennis J. Bonsall, Jr.

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:

WebCat2 beta FTP site (1997) Date Sorting (1997) docs for WebCatalog2 (1997) [OT] Create a thumbnail image of a live webpage (2008) ShowNext Command (1997) Example Search Form (1997) RE: [WebDNA] Scheduling App (2017) WCS Newbie question (1997) PCS Frames (1997) multi-paragraph fields (1997) Problem with a search context (2005) Need help with emailer- 2 issues (1997) Folder modify times (2003) [Price] (1997) ReadDateFormat bug in 3.x (1998) Help name our technology! I found it (1997) RE: Cart Template (1997) same product in cart (1997) Trouble with formula.db (1997) where to put code (1998)