POST data with 401 authentication using urllib(2)

2005-03-25 Thread Pieter Edelman
ode, msg, hdrs) File "/usr/lib/python2.3/urllib2.py", line 352, in error return self._call_chain(*args) File "/usr/lib/python2.3/urllib2.py", line 306, in _call_chain result = func(*args) File "/usr/lib/python2.3/urllib2.py", line 412, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error -1: In fact, I get these exact same errors if "data" is empty. I'm wondering if this is supported in python. I can't find anything about it in TFM. If it's not supported, does anybody have an idea how to do it? If it is supported, can anybody tell what I'm dowing wrong? Any help is greatly appreciated. Pieter Edelman -- http://mail.python.org/mailman/listinfo/python-list

Access to raw command line?

2007-04-26 Thread Pieter Edelman
Hi, I'm currently writing a command-line program in Python, which takes commands in the form of: ./myprog.py [OPTIONS] ARGS So pretty standard stuff. In my case, ARGS is a list of image files. One of the possible options is to specify a file holding information about the photos. You'd specify it

Re: Access to raw command line?

2007-04-26 Thread Pieter Edelman
All your posts pretty much confirmed my own thoughts on this subject. Every option requires a specific action from the user, and as Bjoern points out, it would differ from what everybody is used to. I think there's no trivial and reliable way to do this, so I can better leave it the way it is (at

Re: Access to raw command line?

2007-04-27 Thread Pieter Edelman
Yes, but I want to make it less difficult for my end users, not more difficult. I think the best is to require an extra switch for the photo files, as some of the people here suggested. On Apr 26, 6:27 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-04-26, Pieter Edelman <[EMA

Re: Access to raw command line?

2007-04-27 Thread Pieter Edelman
Of course you're right about that. I think an optional GUI or wizard- like interface (in this particular case) would be best, but I was looking for an easy fix :) Thanks for the suggestion though. On Apr 26, 5:25 pm, Michele Simionato <[EMAIL PROTECTED]> wrote: > On Apr 26, 9