Skip to content
Stan James edited this page Feb 22, 2018 · 4 revisions

Origin Protocol Website

Testing

Common Troublespots

  • RTL languages: Hebrew/Arabic
  • Presale and partner interest forms
  • Ingognito mode to force extended recaptcha challenge
  • Make sure recaptcha denying automated requests (see below)

CURL to confirm bots can't post to form.

Localhost

curl -v -X POST -d "name=Tester+McTestface&company_name=Scrubber%2C+LLC&email=tester%2B1234%40gmail.com&website=https%3A%2F%2Fscrubber.social&note=&g-recaptcha-response=" http://127.0.0.1:5000/partners/interest

Production

curl -v -X POST -d "name=Tester+McTestface&company_name=Scrubber%2C+LLC&email=tester%2B1234%40gmail.com&website=https%3A%2F%2Fscrubber.social&note=&g-recaptcha-response=" https://www.originprotocol.com/partners/interest

Ideal response:

Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 54.221.226.80...
* TCP_NODELAY set
* Connected to www.originprotocol.com (54.221.226.80) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: www.originprotocol.com
* Server certificate: Let's Encrypt Authority X3
* Server certificate: DST Root CA X3
> POST /partners/interest HTTP/1.1
> Host: www.originprotocol.com
> User-Agent: curl/7.54.0
> Accept: */*
> Content-Length: 145
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 145 out of 145 bytes
< HTTP/1.1 200 OK
< Connection: keep-alive
< Server: gunicorn/19.7.1
< Date: Wed, 14 Feb 2018 19:03:53 GMT
< Content-Type: application/json
< Content-Length: 36
< Via: 1.1 vegur
< 
"Please prove you are not a robot."
* Connection #0 to host www.originprotocol.com left intact
MacBook-Pro-2:company-website ryan$ 
Clone this wiki locally