0

HTTP POST with html table

I know it is really bad for the HTTP spec, but some people require POSTs to get at their page.

How about adding "method" and "params" as optional input parameters to the "html" table? Defaulting to GET and "" of course. Then I could do

SELECT* FROM html WHERE url=@url AND xpath=@xpath AND method="POST" AND params = "page=2"

where method is GET,POST,PUT,DELETE and if you want to be fun HEAD,CONNECT,OPTIONS,TRACE.

You could become the GET -> other method of choice for hitting REST endpoints.

by
3 Replies
  • QUOTE (Paul Tarjan @ Jun 23 2009, 07:46 PM) <{POST_SNAPBACK}>
    I know it is really bad for the HTTP spec, but some people require POSTs to get at their page.

    How about adding "method" and "params" as optional input parameters to the "html" table? Defaulting to GET and "" of course. Then I could do

    SELECT* FROM html WHERE url=@url AND xpath=@xpath AND method="POST" AND params = "page=2"

    where method is GET,POST,PUT,DELETE and if you want to be fun HEAD,CONNECT,OPTIONS,TRACE.

    You could become the GET -> other method of choice for hitting REST endpoints.


    Thats an interesting extension. You could build an open data table to do just that too ... :PJonathan
    0
  • Could you explain a little more how you would do that Jonathan? I can't seem to figure out how to build an open data table that would allow me to POST to an HTML form and then convert the resulting HTML table. Here an example of such a form and results: http://bit.ly/FUFpF. Thanks in advance for your help & advice!

    Russell

    QUOTE (Jonathan @ Jul 13 2009, 03:11 PM) <{POST_SNAPBACK}>
    Thats an interesting extension. You could build an open data table to do just that too ... :PJonathan
    0
  • QUOTE (Russell @ Aug 8 2009, 08:21 PM) <{POST_SNAPBACK}>
    Could you explain a little more how you would do that Jonathan? I can't seem to figure out how to build an open data table that would allow me to POST to an HTML form and then convert the resulting HTML table. Here an example of such a form and results: http://bit.ly/FUFpF. Thanks in advance for your help & advice!

    Russell


    I would recommend using the .post() method on the request object.

    http://developer.yahoo.com/yql/guide/yql-j...e-yglobalobject
    0

Recent Posts

in YQL