cURL not working

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 26 Feb 2015, 19:16

cURL not working

Postby jamesjrcarter23 » 26 Feb 2015, 21:03

I have been trying to access the api through terminal using : (curl -d '{"op":"login","user”:"user","password”:"password"}' ) but it is not working. The respond that I get is:

Also I have tried: ( curl -d '{"op":"isLoggedIn"}' ) but the response that I get is:

<title>301 Moved Permanently</title>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="">here</a>.</p>
<address>Apache/2.2.22 (Debian) Server at Port 80</address>

Does any one have a idea of what is wrong?

Bear Rating Master
Bear Rating Master
Posts: 131
Joined: 17 Mar 2013, 19:35

Re: cURL not working

Postby Latimer » 26 Feb 2015, 21:49

I would guess these weird characters are responsible:

curl -d '{"op":"login","user:"user","password:"password"}'

e: you removed your server address from the commands you're running, but not from the response you're quoting.

User avatar
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia

Re: cURL not working

Postby fox » 26 Feb 2015, 22:07

nice kb post, op

e: i have no idea why are there even subforums because not one of you retards ever bothers reading anything before posting your dumb question

Return to “Support”

Who is online

Users browsing this forum: No registered users and 18 guests