Scott Rossi wrote:
> 
> I'm just now trying to get up to speed with the new URL implementation in
> 2.4B3 and can't seem to get the POST method to work (this works fine in
> 2.3.2).  My form looks likes this:
> 
>   set httpheaders to "specialHeaderInfo"&return
>   put "http://www.myURL.com/special.cfm?method=post&action=action"; into HREF
>   put "data=" & fld data into tData
>   start using stack "libURL"
>   post tData to url HREF
>   answer it

Try:
put "http://www.myURL.com/special.cfm"; into HREF
put "data=" & fld "data" into tData
post tData to url HREF

No need for httpHeaders (obsolete for now) since the library implements
a full header on its own.

If you want to use "start using X" (though not necessary) don't need to
use the word "stack".
Also if that doesn't work, give me a "real" url to test with for more
help.

> 
> Problem = I'm not getting any data back in it; in fact, I'm not getting the
> answer dialog at all.
> 
> I've tried removing the libURL line (I assume you need to use this with a
> POST command) with the same results.  The simple loading of a URL via the
> libURL stack works fine, and the server that is handling the CFM action
> responds as expected using MC 2.3.2.  Am I missing something about POST in
> MC 2.4?
> 
> On a related note, is it the case that you need to include the libURL stack
> as a substack in your own stack if you distribute your stack as a
> standalone?  If this is the case, why isn't the libURL stack included as an
> option in the resource mover?

You do need to copy libURL to your own stack and add a line to the main
stack script something like 'on openStack start using "libUrl"' so that
you don't have to call it later.

> 
> FWIW, I've tried cloning the libURL stack on MacOS 9.1 three times, each
> time resulting in a frozen crash.
> 
> Regards,
> 
> Scott
> 

Andu

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to