Http request in server script

hi

is it possible to make http request in server script?
if possible then how?

thanks

frappe.make_get_request

Make a GET request.

Example: frappe.make_get_request('https://example.com')

frappe.make_post_request

Make a POST request.

Example: frappe.make_post_request('https://example.com', data={'username: 'test'})

you can refer the documentation
https://frappeframework.com/docs/v14/user/en/desk/scripting/script-api

1 Like

thank you

Aya, have you learned how to get the response from the http request using frappe methods(make_get_request or make_post_request)?