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....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---