cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Authentication problem? - Error 401

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 8 May 2006 14:49:08 -0700

On Mon, May 08, 2006 at 02:11:12PM -0700, d w wrote:
> I am using curl at client sites to monitor the process of scripts that run
> every night. I have run into an issue with one of the clients that is
> causing me great grief. I use two commands to post information to the same
> server but different asp pages. I can get one of the commands to post
> succesfully but not the other.
[...]
> curl -u username:password -d
> "system=mycomputer&extract=Pending&upload=Pending&posting=Pending&startDate=`DATE
> -u +%D`&startTime=`DATE -u +%R`&btnInput=submit"
> http://server-ip/intell_project/_main/capture.asp
[...]
> Any suggestiions as to what I may be doing wrong would be greatly
> appreciated. These same commands work for 20+ other clients. I'm going bald
> trying to figure this one out.

I can think of a couple of possibilities. The obvious one is that the user
name and password for this client isn't set up the same way on the server
as the other client, causing the server to reject access to that client only.
Another problem (more of a long shot, really) might be with the DATE command.
If it produces output that's locale-specific and that one client is set for
a different locale, then its output might be different than the other
clients, confusing the server. And keep in mind that you've just posted
the client's user name and password to the entire world on this mailing list.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-05-08