curl-library
Re: Unable to post form data to server
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Jul 2002 09:16:05 +0200 (MET DST)
Date: Tue, 30 Jul 2002 09:16:05 +0200 (MET DST)
On Mon, 29 Jul 2002, preetic wrote:
> I have been trying to post form field values(ie the username and password )
> of a login page in order to get the logged in page.I have not been able to
> achieve this.I get a page login failure page instead. the code is as
> follows:-
>
> import pycurl
> curl=pycurl.init()
> curl.setopt(pycurl.URL, 'http://www.zope.org/logged_in.html')
> dataread="__ac_name=ABC & __ac_password=rtrt & submit=Login &
> came_from=http://www.zope.org/login.html" #have not supplied the correct
> name n password
These spaces in the string to post should probably not be there.
-- Daniel Stenberg -- curl related mails on curl related mailing lists please ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31Received on 2002-07-30