The Movie Database Support Forum

I get the following error with a simple One line web query in Windows Powershell. I've tried several things ...can anyone set me straight? Thanks

Invoke-WebRequest http://api.themoviedb.org/3/movie/550?api_key=9343dd7ed77d525d...

results in...

Invoke-WebRequest : {"status_code":19,"status_message":"Invalid accept header"} At line:1 char:1

  • Invoke-WebRequest http://api.themoviedb.org/3/movie/550?api_key=9343dd7ed77d525d ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

1 Antwort (Seite 1 von 1)

Jump to last post

Hey dmance,

You need to send along an Accept header with a value of application/json. Unfortunately, I don't have any insight as to how to do that in Powershell. You'll have to scour the internet for help.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden