Search results for query: *

  1. D

    Question CURL request in VB.net

    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!
  2. D

    Question CURL request in VB.net

    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...
  3. D

    Question CURL request in VB.net

    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...
  4. D

    Question CURL request in VB.net

    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...
  5. D

    Question CURL request in VB.net

    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...
  6. D

    Resolved Question About While/Do While Loop

    Thanks, moving it from the thread into my button did the trick!
  7. D

    Resolved Question About While/Do While Loop

    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...
  8. D

    Resolved Question About While/Do While Loop

    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?
  9. D

    Resolved Question About While/Do While Loop

    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...
  10. D

    Question Issue Getting XML Element With Namespaces

    @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 =...
  11. D

    Question Issue Getting XML Element With Namespaces

    Thanks for your reply JohnH! Both of your solutions did the trick!!
  12. D

    Question Issue Getting XML Element With Namespaces

    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"...
  13. D

    Question Issue with SSLStream Responses

    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...
  14. D

    Question Adding Items From 1 RichTextBox into Different Arrays

    Thanks for the replies everyone! I'm trying to setup and use a queue like jmcilhinney recommended. Will update how it goes!
  15. D

    Question Adding Items From 1 RichTextBox into Different Arrays

    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...
  16. D

    Question Issue with JSON POST using WebClient

    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.
  17. D

    Question Issue with JSON POST using WebClient

    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...
  18. D

    Question Issue with JSON POST using WebClient

    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...
  19. D

    Resolved Strange Characters in POST WebRequest Response

    Thanks JohnH. The postdata worked both ways once I changed the StreamReader like you suggested. This is resolved now
Back
Top