Hi Brendan
The logs show that the request that created that clig was as follows:
http://cli.gs/api/v1/cligs/create?url=http://malleablemusings.wordpress.com/2008/12/22/cligs-and-the-iphone/&title=Cli.gs
The parameters were correctly parsed:
URL:
http://malleablemusings.wordpress.com/2008/12/22/cligs-and-the-iphone/
Title: Cli.gs
Notice the lack anything after the title, which means that it created
a public clig. I've seen this kind of behavior/bug in PHP a few times.
My suggestion is to rework you code as follows:
curl_setopt($ch, CURLOPT_URL, "
http://cli.gs/api/v1/cligs/create?
key=apikey&appid=apptitle&url=".
$url."&title=".$title);
This has fixed such issues before. Let me know how that works out for
you.
While you're at it, make sure that the title and the URL are urlencode
()ed.
Cheers,
Pierre
On Dec 28, 3:05 pm, Brendan <
fawcet...@googlemail.com> wrote:
> Hi Pierre,
>
> The bit of the script is:
>
> <?php
> $url = $_GET['url'];
> $title = $_GET['title'];
> $ch = curl_init();
> curl_setopt($ch, CURLOPT_HEADER, 0);
> curl_setopt($ch, CURLOPT_VERBOSE, 0);
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
> curl_setopt($ch, CURLOPT_URL, "
http://cli.gs/api/v1/cligs/create?url=".
> $url."&title=".$title ."&key=apikey&appid=apptitle");
> $output = curl_exec($ch);
> curl_close($ch);
> ?>
>
> It creates the clig OK e.g.
http://cli.gs/E24WNbbut isn't attributing