21
Jan
10

trac login with mechanize



If you ever need to login to trac using Ruby, and don’t know how to input your username and password, it’s simple: use the basic_auth method like :


mech.basic_auth(user,password)
mech.get(link_to_trac)

Advertisements

0 Responses to “trac login with mechanize”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 228,119 hits

%d bloggers like this: