<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/5579" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-09-12T05:55:18-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/5579</id>

		<entry>
		<author><name><![CDATA[darkrad]]></name></author>
		<updated>2003-09-12T05:55:18-04:00</updated>

		<published>2003-09-12T05:55:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27014#p27014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27014#p27014"/>
		<title type="html"><![CDATA[redirection page]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27014#p27014"><![CDATA[
I have a problem with getting data from a redirection page :<br><br>set url "&lt;a url that point to a redirection page&gt;"<br>set http [ http::geturl $url ]<br>putlog "[ http::code $http]"<br>set html [ http::data $http ]<br>set fs [open "test.txt" w+]<br>puts $fs $html<br>close $fs<br><br>i get in logs : HTTP/1.1 302 Found<br>so this should be a redireciton page , but<br>if i look at test.txt file , it's empty  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <br>I looked at man , and found this (in "http" command seciton): <br><br>http<br>The HTTP status reply from the server. This value is returned by the ::http::code command. The format of this value is: <br>HTTP/1.0 code string<br>The code is a three-digit number defined in the HTTP standard. A code of 200 is OK. Codes beginning with 4 or 5 indicate errors. Codes beginning with 3 are redirection errors. In this case the Location meta-data specifies a new URL that contains the requested information. <br><br>now , how can i show that location meta info ? maybe i can get the redirection url from there . <br><br>thx for the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3830">darkrad</a> — Fri Sep 12, 2003 5:55 am</p><hr />
]]></content>
	</entry>
	</feed>
