Support Forum [ All Topics | New Topic ]

Thread: Using code generated by "Generate Code" button

I captured the code generated by the selection form, but when I click on it to download the file, I get a 401 Unauthorized error.  I am guessing that this is because the code does not include the username and password?  If so, how to include same?

Al;so, I noticed that the code uses http:// but based on other posts I read here, should it be https://?

>> add a comment
Allan Kirson for Orli Diamonds
01/23/2014 04:53

3 Replies:


We are talking about our Download Listings Service (DLS) here.

First of all, you are correct, the link itself won't work without the username and password in the POST request to that link. There are two options, and this will also answer your http / https question.

Option A: do one request, whcih includeds the URL as you get it from above as the target URL, but change it to HTTPS. So the URL would for example be:
 You would then pass the other parameters in your post data., which will look something like this:

formData["Username"] = "myUser";
formData["Password"] = "myPassword";
webRequest.Method = "POST";
webRequest.ContentType = "application/x-www-form-urlencoded";

Option B: do two requests, one over https to authenticate to retrieve the userticket from there, and connect this to the generate code URL, and then you can request over HTTP.

You can use this as a good example:

You can also try this manually, by going to this URL -  - type in your username and password, click logon, and then copy & paste your ticket - that long string of characters - after the url + &ticket=

so for example:

Hope this helps



>> add a comment
1/26/2014 12:33:00 AM
Dear Team,

I am working on the code which was given in the below link.

and using the link :

but it is not providing result properly.

Please do the needful.

>> add a comment
Amit Chavan
9/22/2014 9:14:00 AM
it seems that you didn't attached the ticket

>> add a comment
9/22/2014 9:39:00 AM