<s> import urllib2 <EOL> import urllib <EOL> baseParams = { '<STR_LIT:username>' : '<STR_LIT:foo>' , '<STR_LIT:password>' : '<STR_LIT:bar>' , '<STR_LIT:to>' : '<STR_LIT>' , '<STR_LIT:content>' : '<STR_LIT>' } <EOL> baseParams [ '<STR_LIT:content>' ] = '<STR_LIT>' <EOL> urllib2 . urlopen ( "<STR_LIT>" % urllib . urlencode ( baseParams ) ) . read ( ) <EOL> baseParams [ '<STR_LIT:content>' ] = '<STR_LIT>' <EOL> baseParams [ '<STR_LIT>' ] = <NUM_LIT:8> <EOL> urllib2 . urlopen ( "<STR_LIT>" % urllib . urlencode ( baseParams ) ) . read ( ) </s>
