Jump to content

Response anomalo


Infosteo

Recommended Posts

Buongiorno a tutti,

ho sviluppato una interfaccia .Net C# per dialogare con i webservice di Prestashop, utilizzando PrestaSharp.
Effettuo una Get sui prodotti, ma il response che ricevo non è in XML o JSON, ma l'HTML della pagina "elenco prodotti" del sito.
Ho fatto la stessa chiamata in maniera tradizionale con HttpWebRequest ed il risultato è lo stesso.

Se effettuo la chiamata con Postman o da browser funziona.

Ho notato che l'URL della request, dopo GetResponse cambia da
https://miositoweb/api/products/?display=full

a

AbsoluteUri = "https://miositoweb/index.php?url=products%2F&display=full"
 

E' capitato a qualcuno?

Grazie

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...