Login Page - Create Account

Support Board


Date/Time: Mon, 27 Jan 2025 17:13:03 +0000



Using sc.MakeHTTPRequest for shared files on cloud

View Count: 1331

[2019-02-21 14:58:47]
@sstfrederik - Posts: 405
Hi,

A few years back when I started I made a study that could grab a csv file from a shared google drive link made with this tool:

https://sites.google.com/site/gdocs2direct/

There would generally be a redirect response which I would than use to grab the actual file contents.

Currently sc.MakeHTTPRequest gets a 404 response when such a link is requested. So this no longer works.

an example link is this one which should provide a few numbers.

https://drive.google.com/uc?export=download&id=1arRrMQE84xBvZ8lPBmpYLTY6cAPGoZqP

I have a few studies made that work fine on direct links to files on selfhosted servers, but it would be great if I could support users that are not to technical.

Anything you guys can do?

Thanks.

Frederik
[2019-02-22 03:45:33]
Sierra Chart Engineering - Posts: 104368
We are looking this over but it looks like the URL has moved.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-02-22 06:29:37]
@sstfrederik - Posts: 405
With any other tool I get a 302 temp moved message. I was hoping the sc. HttpResponse could at least be filled with that. Instead I get a 404 not found when I parse the response.
[2019-03-01 08:56:23]
@sstfrederik - Posts: 405
Google drive always redirects the initial link.

By using https://httpstatus.io/ with the link above you can see a 302 redirect to the actual file.

when I view the sc.HTTPResponse in the message log I get a 404 output as seen below:

<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>

Somehow it seems that sc.MakeHTTPRequest gives up and produces a standard 404. Can sc.MakeHTTPRequest make the first response available in the sc.HTTPResponse?

Thanks.
[2019-03-01 09:14:12]
Sierra Chart Engineering - Posts: 104368
Test version 1880. This now should be resolved.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account