Note that there are some explanatory texts on larger screens.

plurals
  1. POBugzilla report bug using PHP
    primarykey
    data
    text
    <p>I was trying to post a bug to my bugzilla account using this code </p> <pre><code>set_time_limit(0); $URI = 'http://site.com/bugzilla/xmlrpc.cgi'; $xml_data = array( 'login' =&gt; 'email', 'password' =&gt; 'password', 'remember' =&gt; 0 ); $bug_ids = array(50, 100); // bugs list //$file_cookie = tempnam('', 'bugzilla-cookie'); $ch = curl_init(); $options = array( //CURLOPT_VERBOSE =&gt; true, CURLOPT_URL =&gt; $URI, CURLOPT_POST =&gt; true, CURLOPT_RETURNTRANSFER =&gt; true, CURLOPT_HTTPHEADER =&gt; array( 'Content-Type: text/xml', 'charset=utf-8' ) ); curl_setopt($ch, CURLOPT_TIMEOUT,60); curl_setopt_array($ch, $options); $request = xmlrpc_encode_request("User.login", $xml_data); var_dump($request); curl_setopt($ch, CURLOPT_POSTFIELDS, $request); //curl_setopt($ch, CURLOPT_COOKIEJAR, $file_cookie); $server_output = curl_exec($ch); // Array( [id] =&gt; 1 ) for example print_r ($server_output); $response = xmlrpc_decode($server_output); </code></pre> <p>But it keep requesting and i get no response </p> <p>Also I read the Documentation of the BugZilla and I got nothing from it </p> <p>Also I found a code for Zend framework </p> <pre><code>$oClient = new Zend_XmlRpc_Client('http://my.zilla.url/xmlrpc.cgi'); $oHttpClient = new Zend_Http_Client(); $oHttpClient-&gt;setCookieJar(); $oClient-&gt;setHttpClient($oHttpClient); $aResponse = $oClient-&gt;call('User.login', array(array( 'login' =&gt; 'peterh@mydomain.com', 'password' =&gt; 'mypassword', 'remember' =&gt; 1 ))); $aResponse = $oClient-&gt;call('Bug.create', array(array( 'product' =&gt; "My Product", 'component' =&gt; "My Component", 'summary' =&gt; "This is the summary of the bug I'm creating", 'version' =&gt; "unspecified", 'description' =&gt; "This is a description of the bug", 'op_sys' =&gt; "All", 'platform' =&gt; "---", 'priority' =&gt; "P5", 'severity' =&gt; "Trivial" ))); $iBugId = $aResponse['id']; $aResponse = $oClient-&gt;call('User.logout'); </code></pre> <p>But I am not using Zend framework </p> <p>And there is also some perl files as I read but I don't know how to deal with them </p> <p>After three days of searching and reading I came here Please Help me to accomplish it </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload