Hey @Jason Bosco@Kishore Nallan 👋
Is there a way to generate a cURL string from client libraries? I am trying to replicate a query being used in a MultiSearch request using the Golang library but it's been a little challenging to pull off.
k
Kishore Nallan
03/16/2023, 12:46 PM
No, that's not possible. But if you can post the query I can help with some pointers.
r
Raymond Tukpe
03/16/2023, 12:51 PM
Hmm, thanks. Let me try something out on my end for now.
k
Kishore Nallan
03/16/2023, 12:53 PM
One thing you can do is to debug through the client into the http client layer. That way you should be able to get the underlying request body object.
r
Raymond Tukpe
03/16/2023, 12:54 PM
I see, thanks
Raymond Tukpe
03/16/2023, 1:00 PM
Fixed. Thanks a lot. Was easy, just needed a refersher.
Do you think something like the cURL thing would be useful for debug purposes?
I can find some time to open a PR for the golang repo for it.
k
Kishore Nallan
03/16/2023, 1:22 PM
Yes it would be useful if it's not difficult to pull off.