allowed_domains = ['www.example.com']

def start_requests(self):
    return [FormRequest('http://www.example.com/login', formdata={
        'someparam': 'foo', 'otherparam': 'bar'}, callback=self.parse)]
How to send post data in start_urls of the scrapy spider