Re: TCPSEND
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 24289
interpreted = N
texte = On 11/12/99 12:42 am, Michael D. Kirkpatrick so noted...>I am running into a little problem with using the tcpsend command. The>contents of the variables>can be as large as 100000 characters. I am running into the problem of>it cutting off the characters>randomly from 300 - 1000 characters. Also on top of that, my server is>logging all the data that is sent via the>following method:>>[middle startafter=&endbefore=][tcpconnect>host=www.myhost.com]>[tcpsend]POST>www.myhost.com/receive/page.tmpl?sku=[url][sku][/url]&desc=[url][desc][/ur>l]&price=[url][price][/url]&category=[url][category][/url]HTTP/1.1[unurl]%>0D%0A%0D%0A[/unurl][/tcpsend][/tcpconnect][/middle]Try pulling the arguments out of the URL. I saved this sample on a Mac, so the carriage returns are part of the file. You may need to change the [LF] text variable to contain the CR and move them to the ends of the previous lines.[text]LF=[unURL]%0A[/unURL][/text][middle startafter=&endbefore=][tcpconnect host=www.myhost.com][tcpsend]POST /receive/page.tmpl HTTP/1.1[LF]Referer: http:/[thisURL][LF]Host: www.myhost.com[LF]Content-type: application/x-www-form-urlencoded[LF][LF]sku=[url][sku][/url]&desc=[url][desc][/url]&price=[url][price][/url]&category=[url][category][/url][LF][/tcpsend][/tcpconnect][/middle]I had also passed the Content-length: header, but I don't know if that's absolutely necessary. You can throw all the data you're passing into a text variable and do a [countChars] on that variable to get a count if needed.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------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:
On 11/12/99 12:42 am, Michael D. Kirkpatrick so noted...>I am running into a little problem with using the tcpsend command. The>contents of the variables>can be as large as 100000 characters. I am running into the problem of>it cutting off the characters>randomly from 300 - 1000 characters. Also on top of that, my server is>logging all the data that is sent via the>following method:>>[middle startafter=&endbefore=][tcpconnect>host=www.myhost.com]>[tcpsend]POST>www.myhost.com/receive/page.tmpl?sku=[url][sku][/url]&desc=[url][desc][/ur>l]&price=[url][price][/url]&category=[url][category][/url]HTTP/1.1[unurl]%>0D%0A%0D%0A[/unurl][/tcpsend][/tcpconnect][/middle]Try pulling the arguments out of the URL. I saved this sample on a Mac, so the carriage returns are part of the file. You may need to change the [LF] text variable to contain the CR and move them to the ends of the previous lines.[text]LF=[unurl]%0A[/unURL][/text][middle startafter=&endbefore=][tcpconnect host=www.myhost.com][tcpsend]POST /receive/page.tmpl HTTP/1.1[LF]Referer: http:/[thisurl][LF]Host: www.myhost.com[LF]Content-type: application/x-www-form-urlencoded[LF][LF]sku=[url][sku][/url]&desc=[url][desc][/url]&price=[url][price][/url]&category=[url][category][/url][LF][/tcpsend][/tcpconnect][/middle]I had also passed the Content-length: header, but I don't know if that's absolutely necessary. You can throw all the data you're passing into a text variable and do a [countchars] on that variable to get a count if needed.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------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
Rob Marquardt
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:
Append User DB? (2000)
WebCat2 Append problem (B14Macacgi) (1997)
[WebDNA] [PROTECT] - Log Out (2011)
Forbidden CGI Error (1997)
[WebDNA] WebDNA 6.2 and Mac OS X 10.5 Client / Server ? (2009)
WebCatalog and WebMerchant reviewed by InfoWorld (1997)
value in forms (2000)
Note added to [sendmail] in Docs (2004)
random .inc files pulled and placed (2002)
WebCat2.0 acgi vs plugin (1997)
Not really WebCat (1997)
Help! WebCat2 bug (1997)
POST Datamissing? (1998)
Protecting Files (2005)
Platform Switch (1997)
New index for docs (1997)
WebCatalog for Postcards ? (1997)
TCPconnect & XML (2008)
Running _every_ page through WebCat ? (1997)
Setting up shop (1997)