How to use clj-http to post a request?
When I click the search button on this page, it sends a post request. I
want to do the post via cli-http. How can I do that?
I know `(def default-http-opts {:socket-timeout 10000 :conn-timeout 10000
:insecure? true :throw-entire-message? false})
(http/post initial-url default-http-opts)`
can post a request but the problem is that I want to pass in some
parameters. These parameters(the buttons selected) are default on the
page.
They are
AdvancedSearchForm:CourseOrSubjectSelection=ALL_ALL
AdvancedSearchForm:GraduateLevelSelection=ALL
AdvancedSearchForm:allStudyAreas=t
AdvancedSearchForm:departmentList=
AdvancedSearchForm:facultyList=
AdvancedSearchForm:keywords=
AdvancedSearchForm:level=ALL
AdvancedSearchForm:semester=ALL
oracle.adf.faces.FORM=AdvancedSearchForm
oracle.adf.faces.STATE_TOKEN=_id21519:_id21520
source=AdvancedSearchForm:searchButton
I looked into clj-http doc but failed to find how to pass these in. Any help?
No comments:
Post a Comment