<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD><BODY><br>I am sorry but I can't see any directions here, just some bullet points on a slideshow.<div><br></div>David<br><br>--------- Original Message ---------<br><b>From:</b> "phil@highoctane.be" <phil@highoctane.be><br><b>To:</b> "David Pennington" <david@totallyobjects.com>, "Seaside - general discussion" <seaside@lists.squeakfoundation.org><br><b>Subject:</b> Re: [Seaside] Http POST problems<br><b>Date:</b> 03/13/2017 22:35:05 (Mon)<br><br><div dir="ltr">For POST, there is the WARestComponentFilter<div><br></div><div><a href="http://esug.org/data/ESUG2014/4%20thursday/1400-1530%20Seaside/AdvancedSeasideMarschall.pdf" target="_blank">http://esug.org/data/ESUG2014/4%20thursday/1400-1530%20Seaside/AdvancedSeasideMarschall.pdf</a><br></div><div><br></div><div>So you can expose a REST endpoint.</div><div><br></div><div>Phil</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 13, 2017 at 11:21 PM, David Pennington <span dir="ltr"><<a href="mailto:david@totallyobjects.com" target="_blank">david@totallyobjects.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I asked recently if there was a way to do a POST through Seaside but didn't get an answer.<br>
<br>
I have worked at it and got it going but I am confused abut a few things. My Web Page that is the target for the POST is subclassed from WAComponent. I have two issue that I have had to deal with.<br>
<br>
The first is that processing of the POST incoming data requires two instance variables to exist - seasideMimeDocument<br>
seasideMimeDocumentType<br>
<br>
I had to add these to my top level class and then everything seemed OK except that the data was missing.<br>
<br>
In the WARequest object there is a variable called postFields so someone had foreseen the need for handling a POST  but this field is empty.<br>
<br>
There is a field in the headers called content_type and for now I have replaced the more usual "application/json" with my json data and I can get it from there.<br>
<br>
Can anyone give me a clue what I can do to fix this?<br>
<br>
David<br>
<br>
------------------------------<wbr>--------------------<br>
Message sent using Winmail Mail Server<br>
______________________________<wbr>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.<wbr>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/<wbr>seaside</a><br>
</blockquote></div><br></div>
</BODY></HTML>
<br><hr><pre>Message sent using Winmail Mail Server</pre>