Junco Curl testing

Logging in

curl -i -d "email=test@test.com&password=strongpass" http//jothut.com/cgi-bin/app.pl/login

Successful login returned response:

HTTP/1.1 302 Found
Date: Sun, 13 Oct 2013 22:36:35 GMT
Server: Apache
Set-Cookie: juncouserid=3; domain=.jothut.com; path=/
Set-Cookie: juncousername=testusername; domain=.jothut.com; path=/
Set-Cookie: juncosessionid=G9GmYO9RGVym6Q0ovemzWw; domain=.jothut.com; path=/
Set-Cookie: juncocurrent=1; domain=.jothut.com; path=/
Location: /cgi-bin/app.pl/blogpost/19
Content-Length: 0
Content-Type: text/x-perl

Add Webmention

curl -i -d "source=$your_url&target=$target_url" $targets_webmention_endpoint

Returns JSON.

Example return of adding an already existing webmention:

HTTP/1.1 404 Bad Request
Date: Fri, 04 Oct 2013 17:51:28 GMT
Server: Apache
Transfer-Encoding: chunked
Content-Type: application/json

{
  "error": "already_registered",
  "error_description": "The specified WebMention has already been registered."
}

#juncotodo - #testing - #curl

From JR's : articles
97 words - 1006 chars
created on
updated on - #
source - versions - backlinks

Related articles
Curl testing against Grebe - Dec 16, 2014
In Progress - Junco end-user testing - Oct 17, 2013
Perl and Curl - Mar 23, 2015
Valid chars in Junco attributes - Oct 12, 2013



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Mar 29, 2024 - 7:04 a.m. EDT