Thread: [INC] HTTP
View Single Post
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-02-2013 , 19:51   Re: [INC] HTTP
Reply With Quote #34

1.
Example:
Code:
HTTP_DownloadFile("http://google.se", "! TEST.html");
This took 4 minutes before it closed filehandles and killed the think thread.
Result (not the actual issue, just to show you it's not a huge file):
Code:
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.se/hello.html">here</A>.
</BODY></HTML>
2. There's no reason to hardcode the port.

3. A suggestion would also be an option to save the result into a string instead of saving it to a file.
__________________
Black Rose is offline