POST Request Error: Illegal character in query

I'm trying to retrieve data through one of the request nodes (GET, POST, PUT), but all fail with the following URL:

http://www.guidetopharmacology.org/services/ligands/similarity?smiles=CC(=O)\N=c1/sc(nn1C)S(N)(=O)=O&similarityGt=100

Also, the following URL retrives data in BLOB format, instead of JSON:

http://www.guidetopharmacology.org/services/ligands?inchikey=HLFSDGLLUJUHTE

These same URLs works fine through a browser.  Any idea why the node isn't capturing the data properly?

Regards,

--George

 

Hi George,

Your first problem is due to the backslash character in the URL. Your browser seems to automatically correct for that, but when using the KNIME REST nodes, backslashes need to be encoded. You do this by simply replacing the backslash with %5C

As for the second link, the GET Request node actually returns JSON for me. Which version of KNIME are you using?

Cheers,

Roland