Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

PUT – Registering a New User Account with CAPTCHA

John Macfarlane May 14, 2013 09:30AM EDT

Hi, I'm trying to register a new user via the API. Here's my XML that I'm passing to the /user resource at this address:

https://www.feedblitz.com/f.api/user?key=myAPIKey

(I've replaced angle brackets with @)

@?xml version="1.0" encoding="utf-8" ?@
@feedblitzapi version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink"@
@user@
@email@johnmacfarlaneis@gmail.com@/email@
@password@carAd3p1na@/password@
@keepprivate@0@/keepprivate@
@mailformat@TEXT@/mailformat@
@ip@1.2.3.4@/ip@
@captcha@
@random@32119713685281@/random@
@response@x58bxx4x@/response@
@/captcha@
@/user@
@/feedblitzapi@

if you look at the following url: https://www.feedblitz.com/i.fbi?321197
You can see that this is hte correct response for this CAPTCHA Image and the random number is correct also.

However, when I PUT this request with the following Request Headers:

Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468
User-Agent: Fiddler
Host: www.feedblitz.com
Content-Length: 424

I get a 200 Response but the Verification fails and I'm issued with new CAPTCHA details. You can see an examples response below:

@?xml version="1.0" encoding="UTF-8"?@
@feedblitzapi version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink"@
@rsp stat="fail"@
@err code="99" msg="Verification failed [3]" /@
@/rsp@
@user xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0"@
@email@johnmacfarlaneis@gmail.com@/email@
@password@sekret@/password@
@keepprivate@0@/keepprivate@
@mailformat@TEXT@/mailformat@
@ip@1.2.3.4@/ip@
@channelid@1@/channelid@
@captcha@
@random@26824913685283@/random@
@img@https://www.feedblitz.com/i.fbi?268249@/img@
@audio@http://www.feedblitz.com/i.fbi?268249&a=1@/audio@
@/captcha@
@/user@
@/feedblitzapi@

Subsequent attempts using the new CAPTCHA @random@ and correct @response@ fields in my XML fail with the same code.

Any ideas why this is not working?

Many thanks in advance
John

Up 11 rated Down
Heather Solos May 31, 2013 05:44PM EDT FeedBlitz, LLC Agent
Hi John,
You must post with a text/xml or application/xml mime type
The captcha is time sensitive. if a request fails the new code must be used since the submission is failing the captcha isn't the problem.

The [3] in the verification error indicates that the response did not match the request
see what he's doing is

FeedBlitz isn't seeing the XML and is "helpfully" giving him a different set of parameters

It's also important that the <random></random> sent with the PUT is in fact the <random></random> that was sent

Code where the developer always feteches a new Captcha just before sending it back, creates a new random # and then the response doesn't match. . .
Up 4 rated Down
John Macfarlane Jul 02, 2013 07:06AM EDT
Thanks for your reply Heather although I'm still having difficulties.

Can I clarify some points that you made.

"It's also important that the <random></random> sent with the PUT is in fact the <random></random> that was sent"

This suggests a 2 step process and that the CAPTCHA details are actually linked to a PUT request. I've just been doing a GET request at this URL [https://www.feedblitz.com/f.api/captcha?key=MyAPIKey] which responds with XML containing the random number and an IMG URL. I'm using the details from this to populate the XML request body that I am then sending using PUT to this URL [https://www.feedblitz.com/f.api/user?key=MyAPIKey]

The PUT request with a Content-Type of 'text/xml' or 'application/xml' fails to return a response, resulting in an eventual timeout.

I'm currently just using Fiddler to try and get this working.

How long do CAPTCHA's last for and how should I properly connect the 2 steps together?

1. Requesting a new CAPTCHA
2. Using those details to PUT / Register a new user account

Regards,
John


Up 1 rated Down
Amanda Aug 29, 2013 01:22PM EDT FeedBlitz, LLC Agent
Hi John,

Amanda from FeedBlitz Support here.

I wanted check in with you to find out whether you are still having issues with adding new issues.

Please don't hesitate to let me know if you have any other questions or concerns.

Kind regards,

Amanda Henson
Up 14 rated Down
Curtisma Mar 04, 2014 07:41PM EST
Up -4 rated Down
AbesAgido Mar 31, 2014 12:22PM EDT
Up 6 rated Down
AbesAgido Apr 11, 2014 12:51PM EDT

This question has received the maximum number of answers.

Feedblitzsupport@gmail.com
http://assets1.desk.com/
false
@feedblitz
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete