Click here to Skip to main content
14,027,773 members
Rate this:
Please Sign up or sign in to vote.
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.
Richard Deeming 21-Mar-19 9:29am
Would a Fiddler auto-responder do the trick?[^]
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. :)
Peter_in_2780 21-Mar-19 21:19pm
If you're just after the first request(s) that CURL sends, why not fire up Wireshark? Run it at home. Sure it'll fail, but you'll see what it's trying to do.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190419.4 | Last Updated 21 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100