hi there i have a python http post request with no request but theres the code:
requests.post("https://api.i66v1xg2.org/v3/moderate/+" + userid + "/")
i dont know how to make it in java and in okhttp3 help pls thanks
____
0
Newbie Poster
Recommended Answers
Jump to PostI have no experience with Java, but a quick Google search turned up https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpRequest.html
Jump to PostWhile the big picture of what you are attempting to do is missing, let's see if httpclient works. Read some from https://www.google.com/search?q=Java+posting+with+httpclient
All 5 Replies
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
____
commented:
is it the post method? because i need it
+0
rproffitt
2,580
"Nothing to see here."
Moderator
____
commented:
i need to upload the data to the url but that still helped me a bit to learn something thanks
+0
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
ivy.inc.Hugh
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.