Hi Abhishek,
I think you probably want to use URL.openConnection() to obtain a
java.net.HttpURLConnection to interact with an HTTP service like
GData. From there, you can find samples of using an
HttpURLConnection to interact with GData in the GData Java client
libraries, specifically in
com.google.gdata.client.http.HttpGDataRequest.
You might be making things harder on yourself by doing this using such
low-level APIs. Have you looked at the documentation here?
http://code.google.com/apis/gdata/client-java.html
and here:
http://code.google.com/apis/gdata/calendar.html
Using the GData Java client library might enable you to focus more on
your application and less on low-level details.
You can download the Java client library from here:
http://code.google.com/apis/gdata/download/gdata.java.zip
Hope this helps!
-- Kyle
On 8/19/06, iAbhishek@xxxxxxxxx <iAbhishek@xxxxxxxxx> wrote:
>
> Hi,
> This is really trivial, but I can't understand where I am wrong!
> To send the GET request to Calendar using my URL, I am using this code:
> try{
> URL feedUrl = new
> URL("http://www.google.com/calendar/feeds/iabhishek@xxxxxxxxx/private/full");
> InputStream is = new
>
> URL("http://www.google.com/calendar/feeds/iabhishek@xxxxxxxxx/private-<my-magic-cookie>/basic").openStream();
> }catch(Exception e){
> e.printStackTrace();
> }
>
> It compiles and runs but nothing happens. Can anyone please tell what
> is wrong in this?
>
> Thanks.
>
> Abhishek
>
>
> >
>
|