Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Richard Guelzow

    Problem with HTTP response

    Morning Chris - I wanted to let you know. I figured this out. The have different requirements for the various subdomains that provide API services. On one subdomain basic authentication is as you describe. On another they use base64 encoding on the word "Basic" as well as the user/pass. As you...
  2. Richard Guelzow

    Problem with HTTP response

    Thanks again Chris - I'll take a look at that. I generally get these things to work, but this one has stumped. Thanks. Richard
  3. Richard Guelzow

    Problem with HTTP response

    Thanks again Chris - I was told by API support to ignore the cookie. Thanks for setting me straight on the correct format for the authentication. Richard
  4. Richard Guelzow

    Problem with HTTP response

    Chris Thank you very much for your help. That makes sense that what I am receiving in a webpage. When I try your code I receive status code of 401 - unauthorized. Here is the documentation that I received for the API call using a slightly different url: var client = new HttpClient(); var...
  5. Richard Guelzow

    Problem with HTTP response

    Hi everyone, I don't seem able to figure out how to find the correct response for this particular API server. I am supposed to receive this json: { "species": "MjAyMS0wNi0wOFQxMToxMzoxNVpbR01UXQ", "breeds": "MjAyMS0wNi0wOFQxMToxMDo0M1pbR01UXQ", "genders"...
  6. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Chris - no this field is not nullable - I have plenty of records where this field is empty but not set to NULL. I will probably not have time to look at using the Debugger or the Coverage Profiler until next week. I will keep you posted. Thanks again to Chris & Mike.
  7. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    God Morning Chris, Hopefully I will have some time next week to dig into this. So let me be sure that I understand your last paragraph correctly. "ShellExecute() returning a value less than 32 does not trigger a VFP error event" Do I have that right? Let me try the coverage log and see what I...
  8. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Thanks again Chris - I thought about and looked into the option of not using ShellExecute a couple of days ago and rejected the idea due to the fact that there is an over 20-year tradition of opening pdfs [and other types of documents] using the ShellExecute virtue of respecting the Windows file...
  9. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Morning guys, When the problem cropped up, I tried the code with & without ALLTRIM() and it did not make a difference. The fields that the file path/name are stored in are standard VFP character fields. I also tried mimicking the method code from the other area of the app where these same pdf...
  10. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Thanks guys - No I agree it does not make sense. To clarify the 23 & 27 are the numeric return codes from ShellExecute if I capture & display them and they then display as the above posted VFP error 12. Mike, I decided to follow your above line of thought "Hang on. The document opens normally...
  11. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Mike thanks again. Here is what it looks like. My app uses the Codemine framework so the framework is trapping the error and this is the display. Variable '23' is the numeric return code from ShellExecute(). New Information: Occasionally restarting Windows gets rid of the error for a while...
  12. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Thanks guys, Mike - you are correct I did not display trapping the ShellExecute return code. But I am doing exactly as you indicated when I am running in diagnostic mode. Also, I came across your excellent Introducing ShellExecute from 2002 in FoxStuff. Excellent overview. New information -...
  13. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Morning guys, Mike - I have trapped the error I receive either a 23 or a 27 return code. This is what I was referring to as an API error. Chris - these are full paths like d:\vvllabpath\file_name.pdf. Drive letter substitution is used so no UNC server references are used. Thank you. Richard
  14. Richard Guelzow

    API Error 23 or 27 from ShellExecute opening a Pdf

    Hi all - I'm puzzled by this one and not been able to come up with an answer to what I am observing. I have used ShellExecute to open documents [pdf, doc, jpeg] in my app for 20 years with no problems and no errors. I instantiate ShellExecute in my main.prg and use it throughout the app...
  15. Richard Guelzow

    HTTP POST parameters

    Chris - I was able to use your code and it is working perfectly. I also found that I had a typo in the url as well. Thanks to all for your assistance & advice. Much appreciated. Richard
  16. Richard Guelzow

    HTTP POST parameters

    Good morning all - yes you are all correct - this API is expecting JSON. I do have some documentation and a help desk to support me, but they have no knowledge of VFP. I will give your ideas a whirl and see if I can get this to work and report back. Thanks again for your help. Richard
  17. Richard Guelzow

    HTTP POST parameters

    Hi All, I am trying to format this example for VFP: URL: http://onlineapi-onboard.antechdiagnostics.com/api/v1.1/Users/login BODY: { "ClinicID": "134727", "UserName": "PIMS_USER", "Password": "devtest" } I believe that the parameters are passed as...
  18. Richard Guelzow

    HTTP Get - Problem with data caching

    Chris, Not at all, I enjoyed the discussion, and learned a bit on a topic which I had no knowledge of as old-school desktop developer. In addition, I am curious about a line in one of your above posts. So... If I were to get that code placed on the server, I could forget about all of this...
  19. Richard Guelzow

    HTTP Get - Problem with data caching

    Morning guys, Maybe this is becoming a case of be careful what you ask for but nonetheless, it's all very interesting. Chris, I completely support the idea of managing the cache via a proper server request rather than cache-busting, but I was unable to get it to work and I need to move on. Here...
  20. Richard Guelzow

    HTTP Get - Problem with data caching

    OK - I tried the West Wind wwHttp control and it works perfectly, it retrieves fresh data after each underlying server data change. The only downside to this control is addition of new libraries to the application and the licensing fee for the library [more than just this control] [$279]...

Part and Inventory Search

Back
Top