File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Clojure and the fly likes Https post with multi MIME message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Languages » Clojure
Bookmark "Https post with multi MIME message" Watch "Https post with multi MIME message" New topic
Author

Https post with multi MIME message

Gayathri kopparapu
Greenhorn

Joined: Nov 07, 2013
Posts: 11
hi,

I want to post the multipart mime message to the url "https://xyz.com" along with the certificates authentication and get back the response..
sample mime message to post::
---boundary
content-type
context-id
..... xml content

---boundary
content-type
context-id
..... xml content


How can i post the sample message along with certificates???
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 259
    
    5

Read the documentation for clj-http. I believe it supports what you need (but I'm not sure).
Gayathri kopparapu
Greenhorn

Joined: Nov 07, 2013
Posts: 11
Hi,

when i do

(client/get "http://google.com") in my code, I am getting Connection refuesd.......what does it mean?
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 259
    
    5

Google throttles requests and may block requests that don't specify a recognizable user agent string.
Gayathri kopparapu
Greenhorn

Joined: Nov 07, 2013
Posts: 11
So, If want to set any proxies to the requset , how can i set it....and how can I know the proxies are set properly?
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 259
    
    5

You'll have to read the clj-http documentation for user agents etc.
Gayathri kopparapu
Greenhorn

Joined: Nov 07, 2013
Posts: 11
Hi,

:multipart in documentation of clj-http is a little bit confusing. Also, I am not able to build the above multipart MIME message using the :multipart option..


Can anyone help me out.
Gayathri kopparapu
Greenhorn

Joined: Nov 07, 2013
Posts: 11
Hi,

From which version of clj-http , :proxy-host and :proxy-port are supportable???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Https post with multi MIME message