On Fri, Jun 10, 2011 at 9:01 AM, Anand Chitipothu <[email protected]> wrote:
> Here is some sample code using browser.
>
> b = app.browser()
> b.open("/account/login")
> b.select_form("login)
> b["username"] = "foo"
> b["password"] = "secret"
> b.submit()
>
> assert "Welcome Foo" in b.data
> assert b.path = "/"
>
> b.follow_link(name="Preferences")
> assert b.path == "/account/preferences"
>
> I'll try to add a tutorial or a cookbook example soon.
>
> Anand

Thanks, Anand.

Some examples that would be really helpful for me (and hopefully others):

1) How to pre-populate cookies (It looks like what may need to be done
is manipulating browser.cookiejar via cookielib?)
2) How to do GET vs. POST vs. PUT vs. DELETE
3) How to POST raw data (for example, passing in raw JSON instead of
key=value pairs)

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to