Hi Punnadi

It returned false. Which means login is not successful.

And further use the -c cookies in login command and use -b cookies in others 
and you don’t have to worry about session details in that way.






Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729





From: Punnadi Gunarathna
Sent: ‎Friday‎, ‎May‎ ‎1‎, ‎2015 ‎9‎:‎24‎ ‎PM
To: Fathima Dilhasha
Cc: WSO2 Developers' List





Hi Fathima,

I think your login is successful. Use the jsessionid to see invoke rest of the 
curl commands.

On May 1, 2015 8:48 PM, "Fathima Dilhasha" <dilhasha....@gmail.com> wrote:








Hi,


I cannot seem to access the public cloud using the curl command for login.

The curl command I'm using is as follows.

curl -v  -X POST -k 
https://apps.cloud.wso2.com/appmgt/site/blocks/user/login/ajax/login.jag -d 
'action=login&userName=dilha...@wso2.com&password=*******************'


Following is the result of that command.

* Hostname was NOT found in DNS cache
*   Trying 54.209.187.16...
* Connected to apps.cloud.wso2.com (54.209.187.16) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
*      subject: C=US; ST=California; L=Palo Alto; O=WSO2, Inc.; 
CN=*.cloud.wso2.com
*      start date: 2014-05-23 00:00:00 GMT
*      expire date: 2015-05-27 12:00:00 GMT
*      issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert High 
Assurance CA-3
*      SSL certificate verify ok.
> POST /appmgt/site/blocks/user/login/ajax/login.jag HTTP/1.1
> User-Agent: curl/7.35.0
> Host: apps.cloud.wso2.com
> Accept: */*
> Content-Length: 65
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 65 out of 65 bytes
< HTTP/1.1 200 OK
* Server nginx/1.4.6 (Ubuntu) is not blacklisted
< Server: nginx/1.4.6 (Ubuntu)
< Date: Fri, 01 May 2015 15:15:51 GMT
< Content-Type: text/html
< Content-Length: 6
< Connection: keep-alive
< Set-Cookie: JSESSIONID=D0339EB190F95BF7145678E3CBB0B4DB; Path=/appmgt/; 
Secure; HttpOnly
< 
false
* Connection #0 to host apps.cloud.wso2.com left intact


What have I got wrong?

Thanks.
Regards,
Dilhasha






Fathima Dilhasha Nazeer (M.N.F.Dilhasha)
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka



On Fri, May 1, 2015 at 8:19 PM, Fathima Dilhasha <dilha...@wso2.com> wrote:





Hi,


Thank you Mahesh and Samith.

Regards,
Dilhasha









M.N.F. Dilhasha


 Software Engineering Intern | WSO2 Inc.



email   : dilha...@wso2.com
mobile : +94 77 8449321




On Fri, May 1, 2015 at 8:17 PM, Samith Dassanayake <sam...@wso2.com> wrote:


Hi Dilhasha,



You can find the REST API and sample curl commands in [1].




[1] https://docs.wso2.com/display/AF210/REST+APIs




Regards,

Samith



On Fri, May 1, 2015 at 8:11 PM, Fathima Dilhasha <dilhasha....@gmail.com> wrote:






Hi,


I am trying to do $subject. Can someone share curl commands that I can use to 
access the REST API for App Factory?


Thanks.


Regards,


Dilhasha













Fathima Dilhasha Nazeer (M.N.F.Dilhasha)
Undergraduate | Department of Computer Science and Engineering
University of Moratuwa
Sri Lanka


_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev






-- 






Best Regards




Samith Dassanayake

Software Engineer | Cloud TG 

WSO2, Inc. | http://wso2.com 

lean. enterprise. middleware 




Mobile : +947 76207351




_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to