This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TBotv63's profile picture

[1.6.3]HTTP not working after config change

Started by TBotv63, 13 May 2014 - 11:27 AM
TBotv63 #1
Posted 13 May 2014 - 01:27 PM
I had the default config until I got the following error:
Domain not permitted

So I changed it to the following:

Spoiler

# Configuration file
####################
# block
####################
block {
	# The Block ID for Cables
	I:cableBlockID=1229
	# The Block ID for Computers
	I:computerBlockID=1225
	# The Block ID for all Peripherals
	I:peripheralBlockID=1226
	# The Block ID for advanced turtles
	I:turtleAdvancedBlockID=1230
	# The Block ID for turtles
	I:turtleBlockID=1227
	# The Block ID for upgraded turtles
	I:turtleUpgradedBlockID=1228
}

####################
# general
####################
general {
	# The fuel limit for Advanced Turtles
	I:advancedTurtleFuelLimit=100000
	# The disk space limit for computers and turtles, in bytes
	I:computerSpaceLimit=1000000
	# Enable Command Block peripheral support
	B:enableCommandBlock=false
	# The disk space limit for floppy disks, in bytes
	I:floppySpaceLimit=125000
	# Enable the "http" API on Computers (see "http_whitelist" for more fine grained control than this)
	B:http_enable=true
	# A semicolon limited list of wildcards for domains that can be accessed through the "http" API on Computers. Set this to "*" to access to the entire internet.
	S:http_whitelist=*pastebin.com;*computercraft.info;*bitbucket.org
	# The range of Wireless Modems at maximum altitude in clear weather, in meters
	I:modem_highAltitudeRange=384
	# The range of Wireless Modems at maximum altitude in stormy weather, in meters
	I:modem_highAltitudeRangeDuringStorm=96
	# The range of Wireless Modems at low altitude in clear weather, in meters
	I:modem_range=64
	# The range of Wireless Modems at low altitude in stormy weather, in meters
	I:modem_rangeDuringStorm=16
	# The frequency that treasure disks will be found in dungeon chests, from 0 to 100. Increase this value if running a modpack with lots of mods that add dungeon loot, or you just want more treasure disks. Set to 0 to disable treasure disks.
	I:treasureDiskLootFrequency=1
	# The fuel limit for Turtles
	I:turtleFuelLimit=20000
	# Set whether Turtles require fuel to move
	B:turtlesNeedFuel=true
}

####################
# item
####################
item {
	# The Item ID for Coloured Floppy Disks
	I:diskExpandedItemID=31707
	# The Item ID for Floppy Disks
	I:diskItemID=31708
	# The Item ID for Pocket Computers
	I:pocketComputerItemID=31709
	# The Item ID for Printouts
	I:printoutItemID=31706
	# The Item ID for Treasure Disks
	I:treasureDiskItemID=31705
}

Now when I try to call http methods, it doesn't work and tells me that they are undefined, which they shouldn't be.
apemanzilla #2
Posted 13 May 2014 - 04:56 PM
Have you tried putting quotes around the string?
TBotv63 #3
Posted 13 May 2014 - 09:03 PM
Have you tried putting quotes around the string?

The http whitelist one? Just tried it, and it says domain not permitted again. For alldomains now, including pastebin, bitbucket and computercraft.info
theoriginalbit #4
Posted 14 May 2014 - 02:05 AM
A semicolon limited list of wildcards
try putting a ; at the very end