What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: TCPsend with POST?

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25004
interpreted = N
texte = On 12/2/99 9:57 am, Matthias Precht so noted...>Did anyone of you get TCPsend to work with POST-Requests? >I tried to figure out a correct HTTP-header with OTSessionWatcher, but >this code does not work: > >[TCPconnect host=www.foo.net&port=80] >[TCPsend]POST /foo.asp HTTP/1.0[unurl]%0D%0A[/unurl]Referer: >http://www.foo.net/foo.asp[unurl]%0D%0A[/unurl]User-Agent: Mozilla/4.5 >[de] (Macintosh; I; PPC)[unurl]%0D%0A[/unurl]Host: >www.foo.net[unurl]%0D%0A[/unurl]Content-type: >application/x-www-form-urlencoded[unurl]%0D%0A[/unurl]Content-lenght: >200[unurl]%0D%0A[/unurl][unurl]%0D[/unurl][unurl]%0A[/unurl][formvariables >name=t_&exact=F][getchars >start=3][name][/getchars]=[url][value][/url]&[/formvariables]x=47&y=15[unu >rl]%0D%0A[/unurl][/tcpsend] >[/TCPconnect] > >The remote server seems not to get the query strings.Could you try removing the [TCPconnect] and [TCPsend] tags to have it display on screen and see if the page is creating the proper structure?There's a typo in the Content-length: header. And unless you're always going to be sending exactly 200 characters, you'll need to do a [countChars] on the data you're sending (including variable names, = and & characters).Otherwise, it looks very similar to what I've used in the past to send POST submissions to Filemaker.FYI, the line [unurl]%0D%0A[/unurl][unurl]%0D[/unurl][unurl]%0A[/unurl] could simply be [unurl]%0D%0A%0D%0A[/unurl] -- or set the mess to a text variable at the top for reuse in your code, ie. [text]CRLF=[unurl]%0D%0A[/unurl][/text].Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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:

    
  1. Re: TCPsend with POST? (Rob Marquardt 1999)
  2. TCPsend with POST? (Matthias Precht 1999)
On 12/2/99 9:57 am, Matthias Precht so noted...>Did anyone of you get TCPsend to work with POST-Requests? >I tried to figure out a correct HTTP-header with OTSessionWatcher, but >this code does not work: > >[TCPconnect host=www.foo.net&port=80] >[tcpsend]POST /foo.asp HTTP/1.0[unurl]%0D%0A[/unurl]Referer: >http://www.foo.net/foo.asp[unurl]%0D%0A[/unurl]User-Agent: Mozilla/4.5 >[de] (Macintosh; I; PPC)[unurl]%0D%0A[/unurl]Host: >www.foo.net[unurl]%0D%0A[/unurl]Content-type: >application/x-www-form-urlencoded[unurl]%0D%0A[/unurl]Content-lenght: >200[unurl]%0D%0A[/unurl][unurl]%0D[/unurl][unurl]%0A[/unurl][formvariables >name=t_&exact=F][getchars >start=3][name][/getchars]=[url][value][/url]&[/formvariables]x=47&y=15[unu >rl]%0D%0A[/unurl][/tcpsend] >[/TCPconnect] > >The remote server seems not to get the query strings.Could you try removing the [tcpconnect] and [tcpsend] tags to have it display on screen and see if the page is creating the proper structure?There's a typo in the Content-length: header. And unless you're always going to be sending exactly 200 characters, you'll need to do a [countchars] on the data you're sending (including variable names, = and & characters).Otherwise, it looks very similar to what I've used in the past to send POST submissions to Filemaker.FYI, the line [unurl]%0D%0A[/unurl][unurl]%0D[/unurl][unurl]%0A[/unurl] could simply be [unurl]%0D%0A%0D%0A[/unurl] -- or set the mess to a text variable at the top for reuse in your code, ie. [text]CRLF=[unurl]%0D%0A[/unurl][/text].Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.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:

Shipcost lookup? (1997) WebCat2b15MacPlugin - [protect] (1997) RE: Which [index]? (1997) Simple Database close connection (2001) Search for 20 finds 2000, 200 Why? (1997) Modifying order output (1997) Carts & cookies (1999) Date Question (2002) Help! WebCat2 bug (1997) [WebDNA] Mailing list failure !!! (2019) Huge Problem installing Secure Certs (2006) Another bug to squash (WebCat2b13 Mac .acgi) (1997) How do I get Google to crawl a WebCat site? (2003) This list needs a digest: rant, rave... (1997) [TEST] - Please Ignore (2000) Truncated value after space - refresh my memory.... (1997) Server crash (1997) include bug????? (1997) customer.db and forms (1999) Re1000001: Setting up shop (1997)