Advertisement
Guest User

Untitled

a guest
Sep 7th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. var connMgr = ComponentMetaData.RuntimeConnectionCollection.GetRuntimeConnectionByName(Variables.pvDataConnectionName1260).ConnectionManager;
  2. var hcc = (HttpClientConnection100)connMgr.AcquireConnection(null);
  3. hcc.Timeout = 300;
  4.  
  5. if (Variables.pvDataConnectionAuthorisationMode1260 == "Server")
  6. {
  7. hcc.UseServerCredentials = true;
  8. hcc.ServerUserName = Variables.pvDataConnectionUsername1260;
  9. hcc.ServerPassword = Variables.pvDataConnectionPassword1260;
  10. }
  11. _downloadBuffer = hcc.DownloadData(); //this is the line that fails
  12.  
  13. connMgr.ReleaseConnection(hcc);
  14. The URL being requested is along the lines of
  15. https://reports.abc.com/def/data_extracts/filename_20170815.csv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement