HCoop
/
clinton
/
MarylandElectronicPetitionSignature.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4108c61
)
Update maryland_voter.php
author
Patrick McGuire
<insidenothing@gmail.com>
Wed, 22 Jul 2020 14:44:23 +0000
(10:44 -0400)
committer
GitHub
<noreply@github.com>
Wed, 22 Jul 2020 14:44:23 +0000
(10:44 -0400)
api/maryland_voter.php
patch
|
blob
|
blame
|
history
diff --git
a/api/maryland_voter.php
b/api/maryland_voter.php
index
80595f9
..
1609e6d
100644
(file)
--- a/
api/maryland_voter.php
+++ b/
api/maryland_voter.php
@@
-30,7
+30,7
@@
function MVgetPage($url,$cookie,$post){
$url = str_replace('[year]',date('Y'),$url); // replace year Examples: 1999 or 2003
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, $url);
$url = str_replace('[year]',date('Y'),$url); // replace year Examples: 1999 or 2003
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, $url);
- curl_setopt ($curl, CURLOPT_USERAGENT, sprintf("McGuire MEPS https://www.md-petition.com/ /%d.0",rand(4,50)));
+
//
curl_setopt ($curl, CURLOPT_USERAGENT, sprintf("McGuire MEPS https://www.md-petition.com/ /%d.0",rand(4,50)));
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_HEADER, 1);
// spoof
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_HEADER, 1);
// spoof