[OTDev] curl urls
Tobias Girschick tobias.girschick at in.tum.deWed Feb 3 13:48:24 CET 2010
- Previous message: [OTDev] Needed some help with restlet
- Next message: [OTDev] curl urls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello All, I have a question regarding the curl statements. Our API 1.1 (http://opentox.org/dev/apis/api-1.1) states that "Parameters are posted with a "Content-Type:application/x-www-form-urlencoded" HTTP header." I see two ways using curl here: The first one is described on the API page: curl -X GET http://{server}/dataset?compound_uris[]={compound_uri1}&compound_uris[]={compound_uri2}) The second one is (according to http://curl.haxx.se/docs/manpage.html#-d--data) to attach the parameters with -d to the curl call. The first version however seems not to be working with our implementation. Can you tell me if the way the URL is constructed is wrong? curl -X POST http://localhost:8180/OpenTox/algorithm/kNNregression?dataset_uri=http://ambit.uni-plovdiv.bg:8080/ambit2/dataset/23&prediction_feature=http://ambit.uni-plovdiv.bg:8080/ambit2/feature/12818 best regards, Tobias -- Dipl.-Bioinf. Tobias Girschick Technische Universität München Institut für Informatik Lehrstuhl I12 - Bioinformatik Bolzmannstr. 3 85748 Garching b. München, Germany Room: MI 01.09.042 Phone: +49 (89) 289-18002 Email: tobias.girschick at in.tum.de Web: http://wwwkramer.in.tum.de/girschick
- Previous message: [OTDev] Needed some help with restlet
- Next message: [OTDev] curl urls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Development mailing list