POST requests
Send POST requests through Web Unblocker to submit data to target websites. See how to format and send POST data with code examples.
Web Unblocker not only supports sending GET requests but also lets you POST to a web endpoint of your choice. You can send data to a target website, making it return a different result.
Code examples
curl -k -v -x https://unblock.oxylabs.io:60000 \
-U 'USERNAME:PASSWORD' \
'https://ip.oxylabs.io/location' \
-d 'Your POST JSON: data'# Web Unblocker doesn't only support sending GET requests, but also lets you POST to a web endpoint of your choice. This means that you can send data to a target website, which can then make the website return a different result.
import requests
# Use your Web Unblocker credentials here.
USERNAME, PASSWORD = 'YOUR_USERNAME', 'YOUR_PASSWORD'
# Define proxy dict.
proxies = {
'http': f'http://{USERNAME}:{PASSWORD}@unblock.oxylabs.io:60000',
'https': f'https://{USERNAME}:{PASSWORD}@unblock.oxylabs.io:60000',
}
data = {
'Your POST JSON': 'data'
}
response = requests.post(
'https://ip.oxylabs.io/location',
verify=False, # It is required to ignore certificate
proxies=proxies,
json=data,
)
# Print result page to stdout
print(response.text)
# Save returned HTML to result.html file
with open('result.html', 'w') as f:
f.write(response.text)Last updated
Was this helpful?

