NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
|
| 22 Apr 2015 01:29 PM |
I'm using this php script by Voiliax:
pastebin.com/BtBReX4k
It's supposed to automatically update an asset when you give it XML data, then return the ID of that asset. I have no idea how XML works and I haven't been able to it working.
Assuming this php script is fully functional on the web server, how would I properly make a request from ROBLOX Lua? |
|
|
| Report Abuse |
|
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
| |
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
| |
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 22 Apr 2015 02:01 PM |
You want to post your XML data as the POST body (not URL encoded or anything) To understand XML, save one of your places as .rbxlx and study the format. It's pretty straightforward.
This is a signature. Recommended username: FabulousGskw |
|
|
| Report Abuse |
|
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
| |
|
NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
|
| 22 Apr 2015 02:27 PM |
I looked into ROBLOX XML and put some in a literal string. The server is still giving the invalid id/data thing. Where do I put the ID?
I'm putting it at the end of the link, like this:
URL?id=idHere
|
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 23 Apr 2015 12:15 AM |
Totally missed that, but yea, that works. If you want it to create a new asset, make the ID 0.
This is a signature. Recommended username: DecorousGskw |
|
|
| Report Abuse |
|
|