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

Status
Not open for further replies.

42697262

最高
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)
cookie: (cookie value #1)
cookie: (cookie value #2)
cookie: (cookie value #3)
cookie: (cookie value #4)
cookie: (cookie 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.

About this Thread

  • 5
    Replies
  • 554
    Views
  • 3
    Participants
Last reply from:
LadyClare

Online now

Members online
1,126
Guests online
1,686
Total visitors
2,812

Forum statistics

Threads
2,277,063
Posts
28,974,089
Members
1,229,713
Latest member
heizy
Back
Top