8 messages in com.googlegroups.google-calendar-help-dataapiRe: Getting Proxy Authentication Requ...
FromSent OnAttachments
Pradeep23 Jan 2007 03:50 
Ryan Boyd (Google)23 Jan 2007 12:32 
Kulvinder Singh23 Jan 2007 20:13 
Frank Mantek24 Jan 2007 03:45 
Kulvinder Singh24 Jan 2007 03:48 
Frank Mantek24 Jan 2007 06:05 
Kulvinder Singh01 Feb 2007 22:57 
Frank Mantek02 Feb 2007 02:00 
Subject:Re: Getting Proxy Authentication Required : Service Exception when trying to access Google calendar items
From:Ryan Boyd (Google) (api.@google.com)
Date:01/23/2007 12:32:28 PM
List:com.googlegroups.google-calendar-help-dataapi

Hi Pradeep,

Is there a proxy server which your traffic must go through to access the network?

If so, you may need to set the HTTP header called Proxy-Authorization with the appropriate password. I haven't done this myself, but from reading it should go something like this:

myService.getRequestFactory().setHeader("Proxy-Authorization", value); CalendarEventFeed myFeed=myService.getFeed(feedUrl, CalendarEventFeed.class);

There are various formats that your proxy server could require for the Proxy-Authorization header -- Basic, Digest, NTLM, etc.

An example from a sun forum [1]: myService.getRequestFactory().setHeader( "Proxy-Authorization", "Basic " + Base64Converter.encode("proxyuserid:proxypassword"));

For more information, you may want to contact your network administrator or take a look at the requests/responses from your program using Fiddler or Wireshark or the like. You could also look at the traffic that occurs when you're web browsing on the same network.

The RFC on HTTP Authentication may also be valuable: http://tools.ietf.org/html/rfc2617#section-3.2.1

Cheers, -Ryan

[1] = http://forum.java.sun.com/thread.jspa?forumID=2&threadID=413312

Pradeep wrote:

Hi All,

When i am trying to access google calendar items i am getting Proxy authentication required Error.

13:15:17,359 INFO [STDOUT] Current Date Time : 2007-01-12 13:15:17,390 INFO [STDOUT] Exception::++++com.google.gdata.util.ServiceException: Proxy Authentication Required <HTML> <HEAD><TITLE>407 Proxy Authentication Required</TITLE></HEAD> <BODY> <H1>Proxy Authentication Required</H1> <H4> Unable to complete request:<P>Access denied due to authentication failure. </H4> <HR> </BODY> </HTML>

This is due to problem of authentication issue with proxy.

Even when i set proxy properties in the program it is giving error at calendar feeds at the below line:

CalendarEventFeed myFeed=myService.getFeed(feedUrl, CalendarEventFeed.class);

Can u please help me in this....