Hi Daniel, I added -trace and here the result: == Info: About to connect() to proxy myproxy port 80 (#0) == Info: Trying 10.10.82.13... == Info: connected == Info: Connected to myproxy (10.10.82.13) port 80 (#0) == Info: Proxy auth using Basic with user 'DOMAIN\USER' => Send header, 258 bytes (0x102) 0000: GET http://www.google.it HTTP/1.1 0023: Proxy-Authorization: Basic RE9NSVRDXHUwMTAxMDExMTE6dGF0b3BpdHRhM 0063: zc= 0068: User-Agent: curl/7.19.4 (i586-pc-mingw32msvc) libcurl/7.19.4 Ope 00a8: nSSL/0.9.8k zlib/1.2.3 00c0: Host: www.google.it 00d5: Accept: */* 00e2: Proxy-Connection: Keep-Alive 0100: <= Recv header, 153 bytes (0x99) 0000: HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requ 0040: ires authorization to fulfill the request. Access to the Web Pro 0080: xy filter is denied. ) <= Recv header, 22 bytes (0x16) 0000: Via: 1.1 ITC800ISA02 <= Recv header, 31 bytes (0x1f) 0000: Proxy-Authenticate: Negotiate <= Recv header, 30 bytes (0x1e) 0000: Proxy-Authenticate: Kerberos <= Recv header, 26 bytes (0x1a) 0000: Proxy-Authenticate: NTLM <= Recv header, 24 bytes (0x18) 0000: Connection: Keep-Alive <= Recv header, 30 bytes (0x1e) 0000: Proxy-Connection: Keep-Alive <= Recv header, 18 bytes (0x12) 0000: Pragma: no-cache <= Recv header, 25 bytes (0x19) 0000: Cache-Control: no-cache <= Recv header, 25 bytes (0x19) 0000: Content-Type: text/html <= Recv header, 24 bytes (0x18) 0000: Content-Length: 4111 <= Recv header, 2 bytes (0x2) 0000: <= Recv data, 662 bytes (0x296) 0000: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 0040: <HTML><HEAD><TITLE>Error Message</TITLE> 006a: <META http-equiv=Content-Type content="text/html; charset=UTF-8" 00aa: > 00ad: <STYLE id=L_default_1>A { 00c8: .FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #005a80; FONT-FAMILY 0108: : tahoma 0112: } 0115: A:hover { 0120: .FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #0d3372; FONT-FAMILY 0160: : tahoma 016a: } 016d: TD { 0173: .FONT-SIZE: 8pt; FONT-FAMILY: tahoma 0199: } 019c: TD.titleBorder { 01ae: .BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid; 01ee: PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL 022e: -ALIGN: middle; BORDER-LEFT: #955319 0px solid; COLOR: #955319; 026e: BORDER-BOTTOM: #955319 1px solid; FONT-F <= Recv data, 3449 bytes (0xd79) 0000: AMILY: tahoma; HEIGHT: 35px; BACKGROUND-COLOR: #d2b87a; TEXT-ALI 0040: GN: left 004a: } 004d: TD.titleBorder_x { 0061: .BORDER-RIGHT: #955319 0px solid; BORDER-TOP: #955319 1px solid; 00a1: PADDING-LEFT: 8px; FONT-WEIGHT: bold; FONT-SIZE: 12pt; VERTICAL 00e1: -ALIGN: middle; BORDER-LEFT: #955319 1px solid; COLOR: #978c79; 0121: BORDER-BOTTOM: #955319 1px solid; FONT-FAMILY: tahoma; HEIGHT: 3 0161: 5px; BACKGROUND-COLOR: #d2b87a; TEXT-ALIGN: left 0193: } 0196: .TitleDescription { 01ab: .FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 01eb: tahoma 01f3: } 01f6: SPAN.explain { 0206: .FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225 023d: } 0240: SPAN.TryThings { 0252: .FONT-WEIGHT: normal; FONT-SIZE: 10pt; COLOR: #934225 0289: } 028c: .TryList { 0298: .MARGIN-TOP: 5px; FONT-WEIGHT: normal; FONT-SIZE: 8pt; COLOR: bl 02d8: ack; FONT-FAMILY: tahoma 02f2: } 02f5: .X { 02fb: .BORDER-RIGHT: #955319 1px solid; BORDER-TOP: #955319 1px solid; 033b: FONT-WEIGHT: normal; FONT-SIZE: 12pt; BORDER-LEFT: #955319 1px 037b: solid; COLOR: #7b3807; BORDER-BOTTOM: #955319 1px solid; FONT-FA 03bb: MILY: verdana; BACKGROUND-COLOR: #d1c2b4 03e5: } 03e8: .adminList { 03f6: .MARGIN-TOP: 2px 0408: } 040b: </STYLE> 0415: <META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD> 0453: <BODY bgColor=#f3f3ed> 046b: <TABLE cellSpacing=0 cellPadding=0 width="100%"> 049d: <TBODY> 04a8: <TR> 04b0: <TD class=titleborder_x width=30> 04d7: <TABLE height=25 cellSpacing=2 cellPadding=0 width=25 bgCo 0517: lor=black> 0523: <TBODY> 0534: <TR> 0542: <TD class=x vAlign=center align=middle>X</TD> 057b: </TR> 058a: </TBODY> 059c: </TABLE> 05ac: </TD> 05b7: <TD class=titleBorder id=L_default_2>Network Access Message: 05f7: <SPAN class=TitleDescription> The page cannot be displayed</SPAN 0637: > </TD> 0640: </TR> 0649: </TBODY> 0655: </TABLE> 065f: 0661: <TABLE id=spacer> 0674: <TBODY> 067f: <TR> 0687: <TD height=10></TD></TR></TBODY></TABLE> 06b5: <TABLE width=400> 06c8: <TBODY> 06d3: <TR> 06db: <TD noWrap width=25></TD> 06fa: <TD width=400><SPAN class=explain><ID id=L_default_3><B>Expl 073a: anation:</B></ID></SPAN><ID id=L_default_4> There is a problem w 077a: ith the page you are trying to reach and it cannot be displayed. 07ba: </ID><BR><BR> 07ca: <B><SPAN class=tryThings><ID id=L_default_5><B>Try the follo 080a: wing:</B></ID></SPAN></B> 0826: <UL class=TryList> 0840: <LI id=L_default_6><B>Refresh page:</B> Search for the p 0880: age again by clicking the Refresh button. The timeout may have o 08c0: ccurred due to Internet congestion. 08e5: <LI id=L_default_7><B>Check spelling:</B> Check that you typed t 0925: he Web page address correctly. The address may have been mistype 0965: d. 0969: <LI id=L_default_8><B>Access from a link:</B> If there is a link 09a9: to the page you are looking for, try accessing the page from th 09e9: at link. 09f3: 09f5: </UL> 0a02: <ID id=L_default_9>If you are still not able to view the request 0a42: ed page, try contacting your administrator or Helpdesk.</ID> <BR 0a82: ><BR> 0a89: </TD> 0a94: </TR> 0a9d: </TBODY> 0aa9: </TABLE> 0ab3: 0ab5: <TABLE id=spacer><TBODY><TR><TD height=15></TD></TR></TBODY></TA 0af5: BLE> 0afb: 0afd: <TABLE width=400> 0b10: <TBODY> 0b1b: <TR> 0b23: <TD noWrap width=25></TD> 0b42: <TD width=400 id=L_default_10><B>Technical Information (for 0b82: support personnel)</B> 0b9b: <UL class=adminList> 0bb7: <LI id=L_default_11>Error Code: 407 Proxy Authentication 0bf7: Required. The ISA Server requires authorization to fulfill the 0c37: request. Access to the Web Proxy filter is denied. (12209) 0c73: <LI id=L_default_12>IP Address: 10.10.82.13 0ca0: <LI id=L_default_13>Date: 4/29/2009 6:25:30 AM 0cd0: <LI id=L_default_14>Server: isa02.domain.com 0d07: <LI id=L_default_15>Source: proxy 0d2a: 0d2c: </UL> 0d39: </TD> 0d44: </TR> 0d4d: </TBODY> 0d59: </TABLE> 0d63: 0d65: </BODY> 0d6e: </HTML> 0d77: == Info: Connection #0 to host myproxy left intact == Info: Closing connection #0
Thank you so much!!! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Stenberg Sent: Tuesday, April 28, 2009 11:34 PM To: libcurl development Subject: Re: Error 407 with Proxy authentication On Tue, 28 Apr 2009, AMBROSINI Marco wrote: > curl -u DOMAIN\USER -x myproxy:Port http://www.google.com > > to get Google page testing the proxy configuration, I get the error > "Error code: 407 proxy authentication required Add -v too, and check the response headers. I'm sure it says it wants some other authorization method than plain Basic, which curl defaults to. -- / daniel.haxx.se
