Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
At work, I'm trying to access Splunk via the REST API using C#, but all the examples in the documentation use CURL and never show the resultant URL and body data.
I can't install CURL at work, but I just downloaded it on my home PC. I would want to try using CURL on my home PC to see what it produces, but it wouldn't be able to connect to the servers.
I just want to see what CURL produces from the options provided, but not have it try to connect.
Is there an option for that?
I may RTFM over the weekend.

What I have tried:

Flying blind. Downloaded CURL. Online searches for C# examples -- which are probably what will get me there.
Posted
Comments
Richard Deeming 21-Mar-19 9:29am    
Would a Fiddler auto-responder do the trick?
https://docs.telerik.com/fiddler/knowledgebase/autoresponder[^]
PIEBALDconsult 21-Mar-19 13:10pm    
I suppose it would were I Web-savvy.
In the meantime, I do finally have the POST I'm working on working. But there's gotta be a better way!
Richard Deeming 21-Mar-19 13:22pm    
Would the Splunk SDK for C#[^] be a better option?
PIEBALDconsult 21-Mar-19 15:07pm    
I doubt it... Probably can't get permission to install it.

Which means I get to roll my own.
Richard Deeming 21-Mar-19 15:09pm    
The download is a Visual Studio project containing the source code. If nothing else, it might give you a clue as to what the URLs and payloads should look like. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900