ID:92337
 
Not a bug
BYOND Version:464
Operating System:Windows XP Pro
Web Browser:Firefox 3.6
Applies to:DM Language
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:

Using world.Export is wanting to refuse sending data to Topic, however if Manually entered in the browser or by use of link() it will send data to Topic.

Code Snippet (if applicable) to Reproduce Problem:
var/count=0
world
Topic(data,ref)
var
result = params2list(data)
switch(result["act"])
if("suc")
var/headernew = "[result["key"]] ( [result["computer_id"]] | [result["ip"]] )"
for(var/mob/M in world)
winset(M,"Header","text=\"[headernew]\"")
if("mal")
world<<"An error has occurred."
New()
OpenPort(6669)
..()
mob
Login()
if(count++)
del(src)
world<<"welcome"
var/con = world.Export("http://www.whatismyip.org")
if(!con)
src<<"Error!"; del(world)
var/ip = con["CONTENT"]
ip = file2text(ip)
//Does not work
//world.Export("http://vyklou.ath.cx/dm/ping_back.php?cid=[client.computer_id]&cip=[ip]&key=[key]")


//What I am currently using.
//src<<output("<meta http-equiv=\"refresh\" content=\"0;url=http://vyklou.ath.cx/dm/ping_back.php?cid=[client.computer_id]&cip=[ip]&key=[key]\">","browser1")

//Link (Opens a new browser window)
//src<<link("http://vyklou.ath.cx/dm/ping_back.php?cid=[client.computer_id]&cip=[ip]&key=[key]")


Expected Results:

Data to be sent back from the server containing:
suc : key=Leur&computer_id=15783xxxxx&ip=72.xxx.149.xxx

Actual Results:

Data does not get returned.

Does the problem occur:
Every time? Or how often? Everytime USING Export.

When does the problem NOT occur?

When manually visiting the page in the browser.
ex: actually going to http://vyklou.ath.cx/dm/ ping_back.php?key=Leur&cid=15783xxxxx&cip=72.xxx.149.xxx
data will be returned through Topic()
but when used by Export() it does nothing.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Unsure.

Workarounds:
use src<<link instead of the hidden Export
or using a browse in a hidden browser that contains metadata to refresh to the new page with the data in place like so:


Edit-
Updated the dm. If you have an email where I can send the (current) php and dm files please let me know. The PHP file is a disaster right now but still should work for what it is.



Updated. Included an alternative file name for the non-changed php file since the report for testing from your end.
http://vyklou.ath.cx/dm/ping_back.php
Parameters:
cid = computer_id
cip = ip
key = key
!* There is no filtering to match and see if they are true yet. so key=cat&cid=mouse will work, However cip is where it exports too. (will make ip collection server sided later) *!



Edit
Odd, it is working today. It might have been because I did not restart my computer after installation of 464.</<link>
I don't see any Export() call to your server itself in that code, only the link() you said is a workaround. Please show examples of both.
Updated. Please notice the Edit at the very bottom.
Now you've removed the link(). Please show both in your example so any differences in their usage is clear.
***Edit***

Odd, it is working today. It might have been because I did not restart my computer after installation of 464.