List Info

Thread: simulating an Active X




simulating an Active X
user name
2006-05-31 17:03:24
Randy wrote:
> I'm trying to use CP to simulate some of my companies
web server
> interactions to assist me in the development of a new
product.  I'm an
> embedded systems developer and the way I get data to
the server is to
> post information in the following form;
> 
> http://servername/post.asp?var1=var1data&var2=var2
data
> 
> and so on.  I haven't figured out how to get CP to
capture 
> the post.asp and redirect it to a handler that will
parse
> the variables.  Is this possible?

I think so (if I understand your question).

class Root:
    def post_asp(self, var1, var2):
        do_something_with(var1)
        do_something_with(var2)
    post_asp.exposed = True

cherrypy.tree.mount(Root())
# Uncomment the following line for CP 3 (current SVN trunk)
# cherrypy.engine.start()
cherrypy.server.start()


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

simulating an Active X
user name
2006-05-31 18:35:01
Excellent, works perfect.  I knew it had to be something
simple, I just
couldn't find it.

Thanks for the quick reponse.  I'm new with Cherrypy, but
I'm lovin' it
so far.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )