That returned: int(0)
I also checked the Twitter account and I see the new status updated. On May 12, 4:35 pm, Abraham Williams <4bra...@gmail.com> wrote: > Can you verify that the update is actually getting posted to twitter.com and > var_dump(curl_getinfo($ch, CURLINFO_HTTP_CODE)) > > > > On Tue, May 12, 2009 at 15:19, Yazmin <ywick...@gmail.com> wrote: > > > A var_dump($data) produces: > > > bool(false) > > > If I add: > > > $Headers = curl_getinfo($ch); > > var_dump($Headers); > > > A var_dump($Headers) produces: > > > array(19) { > > ["url"]=> > > string(59) "http://twitter.com/statuses/update.xml?status=testing > > +1+2+3" > > ["http_code"]=> > > int(0) > > ["header_size"]=> > > int(0) > > ["request_size"]=> > > int(218) > > ["filetime"]=> > > int(-1) > > ["ssl_verify_result"]=> > > int(0) > > ["redirect_count"]=> > > int(0) > > ["total_time"]=> > > float(0.122609) > > ["namelookup_time"]=> > > float(1.8E-5) > > ["connect_time"]=> > > float(0.122528) > > ["pretransfer_time"]=> > > float(0.122531) > > ["size_upload"]=> > > float(0) > > ["size_download"]=> > > float(0) > > ["speed_download"]=> > > float(0) > > ["speed_upload"]=> > > float(0) > > ["download_content_length"]=> > > float(0) > > ["upload_content_length"]=> > > float(-1) > > ["starttransfer_time"]=> > > float(0.122605) > > ["redirect_time"]=> > > float(0) > > > On May 12, 4:06 pm, Abraham Williams <4bra...@gmail.com> wrote: > > > What do you get if you add: > > > > var_dump($data); > > > > On Tue, May 12, 2009 at 14:05, Yazmin <ywick...@gmail.com> wrote: > > > > > Sadly I need more clarification...and possibly a code example. > > > > > Using PHP, I know that I can successfully get a feed of a user's > > > > latest statuses using this code: > > > > > $ch = curl_init(); > > > > curl_setopt($ch, CURLOPT_URL, $url); > > > > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > > > curl_setopt($ch, CURLOPT_USERPWD, > > "$this->Username:$this- > > > > >Password"); > > > > $xml = curl_exec($ch); > > > > > $data = simplexml_load_string($xml); > > > > > However, when I send an update, the same code, with the addition of a > > > > line for CURLOPT_POST, returns nothing for me: > > > > > $ch = curl_init(); > > > > curl_setopt($ch, CURLOPT_URL, $url); > > > > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > > > curl_setopt($ch, CURLOPT_USERPWD, > > "$this->Username:$this- > > > > >Password"); > > > > curl_setopt($ch, CURLOPT_POST, 1); > > > > $xml = curl_exec($ch); > > > > > $data = simplexml_load_string($xml); > > > > > I must be missing something here, right? So what am I not doing right? > > > > > Thanks! > > > > > On May 9, 3:57 pm, Chad Etzel <jazzyc...@gmail.com> wrote: > > > > > When you post a newstatusupdate, the return value/information should > > > > > contain the newidof the update. > > > > > -Chad > > > > -- > > > Abraham Williams |http://the.hackerconundrum.com > > > Hacker |http://abrah.am|http://twitter.com/abraham > > > Web608 | Community Evangelist |http://web608.org > > > This email is: [ ] blogable [x] ask first [ ] private. > > > Sent from Madison, Wisconsin, United States > > -- > Abraham Williams |http://the.hackerconundrum.com > Hacker |http://abrah.am|http://twitter.com/abraham > Web608 | Community Evangelist |http://web608.org > This email is: [ ] blogable [x] ask first [ ] private. > Sent from Madison, Wisconsin, United States