You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "David Johnson (JIRA)" <no...@atlassian.com> on 2008/01/04 21:00:45 UTC
[Roller-JIRA] Created: (ROL-1645) Content type not set for outgoing
Trackbacks
Content type not set for outgoing Trackbacks
--------------------------------------------
Key: ROL-1645
URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1645
Project: Roller
Issue Type: Bug
Components: Referers and Trackbacks
Affects Versions: 4.0
Reporter: David Johnson
Assignee: Roller Unassigned
Priority: Minor
(from Koji Lin)
i found that my roller cant send trackback to lots site,
i think the http post code in trackback.java shoud change to this
original
HttpMethod method = new PostMethod(trackbackURL);
method.setQueryString(queryString);
new one
PostMethod method = new PostMethod(trackbackURL);
method.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded; charset=utf-8");
method.setRequestBody(queryString);
the spec says we need content-Type
and QueryString will occur an error when i post to other sites.
so i change it to setRequestBody, and it works well now
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[Roller-JIRA] Commented: (ROL-1645) Content type not set for
outgoing Trackbacks
Posted by "koji lin (JIRA)" <no...@atlassian.com>.
[ http://opensource.atlassian.com/projects/roller/browse/ROL-1645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14231 ]
koji lin commented on ROL-1645:
-------------------------------
looks like the receiver must do the samething, somesite send trackback in the body not in the QueryString.
ignore above line..sorry, i test it on my roller, and looks we dont need to change receiver
koji
> Content type not set for outgoing Trackbacks
> --------------------------------------------
>
> Key: ROL-1645
> URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1645
> Project: Roller
> Issue Type: Bug
> Components: Referers and Trackbacks
> Affects Versions: 4.0
> Reporter: David Johnson
> Assignee: Roller Unassigned
> Priority: Minor
>
> (from Koji Lin)
> i found that my roller cant send trackback to lots site,
> i think the http post code in trackback.java shoud change to this
> original
> HttpMethod method = new PostMethod(trackbackURL);
> method.setQueryString(queryString);
> new one
> PostMethod method = new PostMethod(trackbackURL);
> method.setRequestHeader("Content-Type",
> "application/x-www-form-urlencoded; charset=utf-8");
> method.setRequestBody(queryString);
> the spec says we need content-Type
> and QueryString will occur an error when i post to other sites.
> so i change it to setRequestBody, and it works well now
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[Roller-JIRA] Commented: (ROL-1645) Content type not set for
outgoing Trackbacks
Posted by "koji lin (JIRA)" <no...@atlassian.com>.
[ http://opensource.atlassian.com/projects/roller/browse/ROL-1645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14230 ]
koji lin commented on ROL-1645:
-------------------------------
and, i found some site can receive queryString, but wordpress cant receive string the first caharcter is "?"
so i try to substring queryString, like :
method.setRequestBody(queryString.subString(1));
then it can send trackback to wordpress.
looks like the receiver must do the samething, somesite send trackback in the body not in the QueryString.
koji
> Content type not set for outgoing Trackbacks
> --------------------------------------------
>
> Key: ROL-1645
> URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1645
> Project: Roller
> Issue Type: Bug
> Components: Referers and Trackbacks
> Affects Versions: 4.0
> Reporter: David Johnson
> Assignee: Roller Unassigned
> Priority: Minor
>
> (from Koji Lin)
> i found that my roller cant send trackback to lots site,
> i think the http post code in trackback.java shoud change to this
> original
> HttpMethod method = new PostMethod(trackbackURL);
> method.setQueryString(queryString);
> new one
> PostMethod method = new PostMethod(trackbackURL);
> method.setRequestHeader("Content-Type",
> "application/x-www-form-urlencoded; charset=utf-8");
> method.setRequestBody(queryString);
> the spec says we need content-Type
> and QueryString will occur an error when i post to other sites.
> so i change it to setRequestBody, and it works well now
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira