cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: using libcurl in Java???

From: <josh.m.daynard_at_accenture.com>
Date: Sat, 22 Sep 2001 11:42:38 -0400

Unfortunately, I have to show my newbie colors again. I did check the cURL
site and downloaded the version 0.1 of the java curl code before asking the
original question. However, I found the following directions a little
difficult to follow ;-)
|-------------------------------------------------------------------|
| How to Install |
| Install curl and libcurl first. Manual hands-on installation is |
| required for the actual java interface module. |
|-------------------------------------------------------------------|

What exactly do I need to do for this manual hands-on installation? I was
able to compile CurlGlue.java and CurlWrite.java into class files but when
I try to compile the test.java file I get the following errors:

C:\java\javacurl\test.java:1: '.' expected
import CurlGlue;
               ^
C:\java\javacurl\test.java:2: '.' expected
import CurlWrite;
                ^
2 errors

Tool completed with exit code 1

which seems odd because I have CurlGule.class and CurlWrite.class in the
same directory. Sorry for being so clueless here, but I would love a
little kickstart help in getting this working so I don't have to open a
shell to make a call to the command line version (which is working
perfectly, thank you very much!).

Thanks for your help,
Josh

                                                                                                                                    
            Daniel Stenberg <daniel_at_haxx.se>
            Sent by: To: Josh M. Daynard/Internal/Accenture_at_Accenture
            curl-library-admin_at_lists.sourceforge.n cc: libcurl Mailing list <curl-library_at_lists.sourceforge.net>
            et Subject: Re: using libcurl in Java???
                                                                                                                                    
                                                                                                                                    
            09/19/2001 02:14 AM
                                                                                                                                    
                                                                                                                                    

On Tue, 18 Sep 2001 josh.m.daynard_at_accenture.com wrote:

> Has anyone been able to successfully use libcurl in a Java program

I have.

> and if so is there any way I can see an example of how this is done???

http://curl.haxx.se/libcurl/java/

> I'm having a hard time doing what I need to do (post form data using
> HTTPS protocol, passing in cookies for authentication and then parsing
> the response) with the java.net API's. I have no problem doing this
> using the command line curl utility but have no clue how to incorporate
> this functionality into a Java class using libcurl. Help?

The java interface is still very basic and doesn't offer much but the most
basic functionality. I would of course appreciate all contributions that
improves it.

--
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
This message is for the designated recipient only and may contain
privileged or confidential information.  If you have received it in error,
please notify the sender immediately and delete the original.  Any other
use of the email by you is prohibited.
Received on 2001-09-22