Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python http request params

import requests

url = 'http://192.168.3.45:8080/api/v2/event/log'

data = {"eventType": "AAS_PORTAL_START", "data": {"uid": "hfe3hf45huf33545", "aid": "1", "vid": "1"}}
params = {'sessionKey': '9ebbd0b25760557393a43064a92bae539d962103', 'format': 'xml', 'platformId': 1}

requests.post(url, params=params, json=data)
Comment

PREVIOUS NEXT
Code Example
Python :: fcm_django 
Python :: python dictionary add key-value pair 
Python :: python spammer 
Python :: while loop python 
Python :: pandas select first within groupby 
Python :: pandas check match string lowercase 
Python :: django set session variable 
Python :: django regexvalidator example 
Python :: select realted for foreign key table in django 
Python :: python dictionary get 
Python :: urllib request 
Python :: read csv pandas 
Python :: pygame tutorial 
Python :: How to convert string date to datetime format in python 
Python :: checking if a string contains a substring python 
Python :: matplotlib show plot 
Python :: droping Duplicates 
Python :: python json check if key exists 
Python :: add place in certain index python string 
Python :: how to get the remainder in python 
Python :: get ip address py 
Python :: python run command 
Python :: uninstall python using powershell 
Python :: nltk remove more stopwords 
Python :: intellij python 
Python :: end python print with space 
Python :: python copy to clipboard command 
Python :: python capitalize every first letter 
Python :: python while false loop 
Python :: change django administration text 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =