webmention.rocks
webmention.rocks copied to clipboard
Got 400 bad request (no_link_found) from wordpress webmention
Testing by a post here : https://jacky.seezone.net/2018/08/14/12544/ From the wordpress webmention plugin, I found it return bad request like the CURL below.
C:\>curl "https://webmention.rocks/test/1/webmention?head=true" -XPOST -d "source=https://jacky.seezone.net/2018/08/14/12544/" -d "target=https://webmention.rocks/test/1" -v
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 8123 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8123 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to webmention.rocks:443
> CONNECT webmention.rocks:443 HTTP/1.1
> Host: webmention.rocks:443
> User-Agent: curl/7.55.1
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
< Proxy-agent: CCProxy
<
* Proxy replied OK to CONNECT request
* CONNECT phase completed!
* schannel: SSL/TLS connection with webmention.rocks port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 181 bytes...
* schannel: sent initial handshake data: sent 181 bytes
* schannel: SSL/TLS connection with webmention.rocks port 443 (step 2/3)
* schannel: failed to receive handshake, need more data
* CONNECT phase completed!
* CONNECT phase completed!
* schannel: SSL/TLS connection with webmention.rocks port 443 (step 2/3)
* schannel: encrypted data got 3159
* schannel: encrypted data buffer: offset 3159 length 4096
* schannel: sending next handshake data: sending 93 bytes...
* schannel: SSL/TLS connection with webmention.rocks port 443 (step 2/3)
* schannel: encrypted data got 51
* schannel: encrypted data buffer: offset 51 length 4096
* schannel: SSL/TLS handshake complete
* schannel: SSL/TLS connection with webmention.rocks port 443 (step 3/3)
* schannel: stored credential handle in session cache
> POST /test/1/webmention?head=true HTTP/1.1
> Host: webmention.rocks
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Length: 89
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 89 out of 89 bytes
* schannel: client wants to read 102400 bytes
* schannel: encdata_buffer resized 103424
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: encrypted data got 530
* schannel: encrypted data buffer: offset 530 length 103424
* schannel: decrypted data length: 501
* schannel: decrypted data added: 501
* schannel: decrypted data cached: offset 501 length 102400
* schannel: encrypted data buffer: offset 0 length 103424
* schannel: decrypted data buffer: offset 501 length 102400
* schannel: schannel_recv cleanup
* schannel: decrypted data returned 501
* schannel: decrypted data buffer: offset 0 length 102400
< HTTP/1.1 400 Bad Request
< Server: nginx/1.14.0
< Date: Tue, 14 Aug 2018 02:32:50 GMT
< Content-Type: text/plain;charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/5.6.36-1+ubuntu16.04.1+deb.sury.org+1
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: GET, POST
<
no_link_found
The source document does not contain a link to the target URL.
The source document must contain an <a> tag with an href attribute matching the target URL specified.
* Connection #0 to host localhost left intact
The CURL of the page:
C:\>curl "https://jacky.seezone.net/2018/08/14/12544/" | grep "href=\"https://webmention.rocks/test/1"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3100 <p><a href="https://webmention.rocks/test/1">Test 1</a> -- 57
1<a href="https://webmention.rocks/test/10">Test 10</a>4
7<a href="https://webmention.rocks/test/11">Test 11</a>
<a href="https://webmention.rocks/test/12">Test 12</a>1
<a href="https://webmention.rocks/test/13">Test 13</a>
<a href="https://webmention.rocks/test/14">Test 14</a>
<a href="https://webmention.rocks/test/15">Test 15</a>
<a href="https://webmention.rocks/test/16">Test 16</a>
1<a href="https://webmention.rocks/test/17">Test 17</a>4
<a href="https://webmention.rocks/test/18">Test 18</a>7
<a href="https://webmention.rocks/test/19">Test 19</a>1
<div class="p-bridgy-twitter-content" style="display:none"><a href="https://webmention.rocks/test/1">Test 1</a>
<a href="https://webmention.rocks/test/10">Test 10</a>
<a href="https://webmention.rocks/test/11">Test 11</a>0
<a href="https://webmention.rocks/test/12">Test 12</a>
<a href="https://webmention.rocks/test/13">Test 13</a>
<a href="https://webmention.rocks/test/14">Test 14</a>
0<a href="https://webmention.rocks/test/15">Test 15</a>
<a href="https://webmention.rocks/test/16">Test 16</a>
<a href="https://webmention.rocks/test/17">Test 17</a>2
9<a href="https://webmention.rocks/test/18">Test 18</a>
<a href="https://webmention.rocks/test/19">Test 19</a>4
0 --:--:-- 0:00:05 --:--:-- 2716