Jump to content
Sign in to follow this  
Jeff Hough

POST a File

Recommended Posts

Hello,

I am trying to post a file to a server. The API we have been given describes using cURL. But Windows doesn't have cURL installed by default. I would rather include the post method in the plug-in without requiring an external utility be installed.

Is there such a method? Sorry if I am missing the obvious.

Thanks,

Jeff

Share this post


Link to post
Share on other sites

take a look at the HttpURLConnection class, it allows you to call a url and send data to it.

Share this post


Link to post
Share on other sites

Is this the class behind the "Post Data to URL" function that is included as a sample? Will this function post a file?

If not, does anyone have a SM function written I could paste in?

Thanks,

Jeff

Share this post


Link to post
Share on other sites

Have you searched this forum? I'm guessing it's been discussed before.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.