straightvisions

curl 400 error / search engine friendly URLs not activated

1 post in this topic

The API works per default with a forum setup enabled with search engine friendly URLs.

If you have this feature disabled, you'll either need to enable search engine friendly URLs or set the following trigger before first API request:

$ipbwi->core->url_rewrite = false;

Example:

	require_once('../ipbwi.php');
	$ipbwi->core->url_rewrite = false;
	
	// basic board information
	try{var_dump($ipbwi->core->hello());}catch(Throwable $t){ echo 'Type Error, line '.$t->getLine().': ' .$t->getMessage(); }

 

Share this post


Link to post
Share on other sites