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) *!