API test with curl ...

yoooov

banned
Joined
Nov 20, 2016
Messages
2
Points
53
So i tried some cli to test the api :

curl -v "https://xxx.domain.xyz/api/1/upload/?key=xxxxxxxxxxxx&source=/Users/xxxxxx/Desktop/xxxxx.jpg&format=json"

* Trying xxx.xxx.xxx.xxx...
* Connected to xxx.domain.xyz (xxx.xxx.xxx.xxx) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: xxx.domain.xyz
* Server certificate: Let's Encrypt Authority X3
* Server certificate: DST Root CA X3
> GET /api/1/upload/?key=xxxxxxxxxxxx&source=/Users/xxxxxx/Desktop/xxxxx.jpg&format=json HTTP/1.1
> Host: xxx.domain.xyz
> User-Agent: curl/7.43.0
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 500 Internal Server Error
< Date: Fri, 17 Nov 2017 20:59:11 GMT
< Server: Apache
< Set-Cookie: PHPSESSID=of41joo3g8lvh7egn1tbk705f6; path=/
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate
< Pragma: no-cache
< Content-Length: 0
< Connection: close
< Content-Type: text/html; charset=utf-8
<
* Closing connection 0

I always get a HTTP/1.0 500 Internal Server Error or HTTP/1.1 301 Moved Permanently using /api or /myapi ...
Any idea please ??