What's new

Closed Send "POST" to a PHP website with specific headers and proxies for each requests.

Status
Not open for further replies.

42697262

最高
Joined
Jun 16, 2017
Posts
15,262
Solutions
1
Reaction
11,441
Points
3,679
I am trying to make a script on automating something from a website.
I once tried making a simple script with urllib: You do not have permission to view the full content of this post. Log in or register now.

I want to have the script to have the exact specifics for the header and the value to be sent.
The value is already encoded.


Headers That I Need:
method: POST
path: /profile.php?id=######
authority: (some website here)
scheme: https
accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
accept-language: en-US,en;q=0.5
accept-encoding: gzip, deflate, br
content-type: application/x-www-form-urlencoded
content-length: 403
origin: (some website here)
dnt: 1
referer: (some website here)
cøøkíé: (cøøkíé value #1)
cøøkíé: (cøøkíé value #2)
cøøkíé: (cøøkíé value #3)
cøøkíé: (cøøkíé value #4)
cøøkíé: (cøøkíé value #5)
upgrade-insecure-requests: 1
te: trailers

(and then my encoded data to be sent) ex: some_response=random_sort_of_texts=more_texts

I then would wrap each requests with different proxies.


Sample Proxies:
1.2.3.4:123
123.15.25.1:2414
I don't need the full source code, I just want the snippets. I can find my self when I get into troubles with it.
 
ano ginagawa nito sa website?
walang specific sites. any sites lang basta meron lang yung mga headers na kailangan.
alam ko mag add ng ibang headers pero hindi lahat
Python:
import urllib.request

header = {}
header['Content-Type'] = "application/x-www-form-urlencoded"
 
walang specific sites. any sites lang basta meron lang yung mga headers na kailangan.
alam ko mag add ng ibang headers pero hindi lahat
Python:
import urllib.request

header = {}
header['Content-Type'] = "application/x-www-form-urlencoded"
hindi ko magets nagpapatulong ka sa scripts nito?
 
Status
Not open for further replies.
Back
Top