Skip to content

Error 415 uploading audio #611

Closed Answered by vivekatoffice
alejandroactisa asked this question in VAPIX
Discussion options

You must be logged in to vote

Hi @alejandroactisa ,
Not sure how to use cURL in Python but adding my command which I use from WSL:

curl -u root:pass --digest --noproxy "*" -XPOST 'http://10.176.12.211/axis-cgi/mediaclip.cgi?action=upload&media=audio&name=file1' --header 'Content-Type: multipart/form-data' --form '[email protected]'

Tested with AXIS Q1615 Mk III Network Camera (AXIS OS version 11.9.60)

Asked ChatGPT to write code 😉

import requests
from requests.auth import HTTPDigestAuth

# Define the URL and authentication credentials
url = 'http://10.176.12.211/axis-cgi/mediaclip.cgi?action=upload&media=audio&name=UsingChatGPT'
username = 'root'
password = 'pass'

# Define the file to upload
files = {'Content-Type'

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alejandroactisa
Comment options

Answer selected by alejandroactisa
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
VAPIX
Labels
None yet
3 participants