1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying to post to thoughts.com

Discussion in 'PHP & Perl' started by Nattsurfaren, Jan 13, 2013.

  1. Nattsurfaren

    Nattsurfaren Regular Member

    Joined:
    Apr 12, 2010
    Messages:
    409
    Likes Received:
    49
    I have automated a couple of Web2.0 blogs but I can't figure out what I'm doing wrong with "thoughts.com".

    Curl is giving me:
    The requested URL returned error: 500

    Form url is:
    http://blogid.thoughts.com/post/text

    Post url is:
    http://blogid.thoughts.com/posts/create

    Post data is:
    Code:
            $fields["post[title]"] = $title;
            $fields["post[body]"] = $content;
            $fields["post[topic_list]"] = $titletags;
            $fields["post[privacy]"] = "o";
            $fields["post[publish_time]"]="".$sd->YearLongNumber()."-".$sd->MonthNumber()."-".$sd->DayNumber()." ".$sd->TimeHour01To23().":".$sd->TimeMinutes().":00 +0000";
            $fields["date[month]"]=$sd->MonthNumber();
            $fields["date[day]"]=$sd->DayNumber();
            $fields["date[year]"]=$sd->YearLongNumber();
            $fields["date[hour]"]=$sd->TimeHour01To23();
            $fields["date[minute]"]="00";
    
    The rest of the fields are take as they are.

    Appreciate very much your help on this.

    /Natt