Thanks @cjard!! I'm going to open this project up tonight and try the code you suggested. Looks like you got it working on your end, so it should work on mine. Thanks for taking the time to explain everything. Very helpful!
Thanks for taking the time to write back @cjard! I get exactly what you're saying. The main reason I wasn't trying to import the helper library is because this really seems like a rather simple JSON request. The user, one header (content type) and a small amount of data. That's partly why I'm a...
Thanks for your reply @cjard! Is there no way to pass this without something like Flurl? Shouldn't I just be able to pass it in the web request??
Here is something else I've tried.....
1) I took my CURL request and used the curl to C# converter to convert it to C#
2) I took the C# code and used...
I made some changes to the code, adding the header name "Authorization" and used the "Basic" authentication scheme to add the `myUsername` to the headers. I've also modified the way the request data is written to the request stream for better readability.
Here is my new code:
Try
Dim myReq As...
I'm trying to send a CURL request, but appear to be having some issues with my header and hope someone can help...
curl -u 'myusername-test:1815dff0d321430378567bc84963ecd06f71d10f' 'https://api.dev.thewebsite.com/v4/domains' -X POST -H 'Content-Type: application/json' --data...
I've tried doing what you suggested by adding a timer to my form using the toolbox, however my thread never seems to start. It's almost like my timer doesn't tick when it needs to.. here is my code:
Private Sub StartThread_DoWork(sender As Object, e As DoWorkEventArgs) Handles...
Thanks for your reply jmcilhinney. I hadn't thought of trying it that way, so you've given me another avenue to explore. So, basically have the timer tick one time and start the thread inside the timers tick sub?
I want my program to start as close to 13:00:00.000 as possible. To achieve this, I setup a basic while loop..
Dim time As DateTime = DateTime.Now
While time.ToString("HH:mm:ss.fff") <= txtStartTime.Text.Trim
time = DateTime.Now...
@JohnH now I am trying to get the same timestamp from a different response. The timestamp is still in "reason," but the namespace I am using is returning the first <reason> and not the second....
My Code:
Dim doc = XDocument.Parse(requestResponse)
Dim ns As XNamespace =...
Hey everyone, I'm trying get the "<reason>" InnerText from the XML below, but have not been having any luck. The XML has multiple namespaces in it...
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns:fury="urn:ietf:params:xml:ns:fury-2.0" xmlns:fury-rgp="urn:ietf:params:xml:ns:fury-rgp-1.0"...
I'm having a strange issue with SSLstream which I haven't experienced before...
I connect to this server by sending a greeting request first, getting the greeting response, then sending my login request with credentials, and finally reading my login request to make sure I have logged in...
I've been struggling to figure out how to do this and hope someone can help. Here is my scenario...
I have a RichTextBox with multiple items inside and the number of items may vary from one day to the next. I also have the option to run my program on either 1, 2 or 3 different threads (each...
Thanks for your reply John! The API I'm working with doesn't specify the type of encoding to use. I tried setting the encoding to UTF8 as you suggested, but still the same issue (500 Internal Server Error).. Think I might have to contact them and see if they have any suggestions.
I don't know if this will be much help, but they put a small example on this page which uses the same endpoint as my initial GET (/authenticated) and they include a few other things in their header (although they never specify it's required)..Here is what theirs looks like:
X-Auth-Reseller...
I'm messing around with an API that uses JSON, but can't seem to make it POST properly. This particular API authenticates my account using three pieces of information which must be passed in the header. The service offers a basic endpoint you can GET to make sure your information is being passed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.