| 24.01.2009, 22:54 | Hector | ?
Content-Type: multipart/form-data; boundary=---------------------------257062384924075
Content-Length: 961
-----------------------------257062384924075
Content-Disposition: form-data; name="filedata"; filename=""
Content-Type: application/octet-stream
-----------------------------257062384924075
Content-Disposition: form-data; name="_removeImage"
true
-----------------------------257062384924075
Content-Disposition: form-data; name="firstName"
first
-----------------------------257062384924075
Content-Disposition: form-data; name="lastName"
last
-----------------------------257062384924075
Content-Disposition: form-data; name="location"
usa
-----------------------------257062384924075
Content-Disposition: form-data; name="homepage"
http://abc.com
-----------------------------257062384924075
Content-Disposition: form-data; name="bio"
my bio here
and here yes
-----------------------------257062384924075
Content-Disposition: form-data; name="interests"
no interests
-----------------------------257062384924075--
HTTP/1.x 302 Moved Temporarily
? ? ) |
| 24.01.2009, 23:50 | |
$post = array(
'value' => 'data',
);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
|
| 25.01.2009, 00:16 | Hector | (
$post = array();
$post[] = '-----------------------------'.$bound;
$post[] = 'Content-Disposition: form-data; name="filedata"; filename=""';
$post[] = 'Content-Type: application/octet-stream';
$post[] = '';
$post[] = '';
$post[] = '-----------------------------'.$bound;
$post[] = 'Content-Disposition: form-data; name="_removeImage"';
$post[] = '';
$post[] = 'true';
$post[] = '-----------------------------'.$bound;
$post[] = 'Content-Disposition: form-data; name="firstName"';
$post[] = '';
$post[] = 'first';
$post[] = '-----------------------------'.$bound;
$post[] = 'Content-Disposition: form-data; name="lastName"';
$post[] = '';
$post[] = 'last';
$post[] = '-----------------------------'.$bound;
$post[] = 'Content-Disposition: form-data; name="location"';
$post[] = '';
$post[] = 'usa';
$post[] = '-----------------------------'.$bound;
$post[] = 'Content-Disposition: form-data; name="homepage"';
$post[] = '';
$post[] = 'http://abc.com';
$post[] = 'Content-Disposition: form-data; name="bio"';
$post[] = '';
$post[] = 'my bio here';
$post[] = '-----------------------------'.$bound;
$post[] = 'Content-Disposition: form-data; name="interests"';
$post[] = '';
$post[] = 'no interests';
$post[] = '-----------------------------'.$bound.'--';
$post[] = '';
$post=join("\r\n", $post);
$cr=curl_init($url);
curl_setopt($cr, CURLOPT_TIMEOUT, 60);
curl_setopt($cr, CURLOPT_HEADER, 1);
curl_setopt($cr, CURLOPT_PROXY, $proxy);
curl_setopt($cr, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt($cr, CURLOPT_HTTPHEADER, array("Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-icq, */*","Accept-Language: en-US;en;q=0.5","UA-CPU: x86","User-Agent: Opera/9.10 (Windows NT 5.1; U; en)","Connection: Keep-Alive","Content-Type: multipart/form-data; boundary=---------------------------$bound"));
// curl_setopt($cr, CURLOPT_CUSTOMREQUEST, "Content-Type: multipart/form-data; boundary=---------------------------'.$bound");
curl_setopt($cr, CURLOPT_COOKIEFILE, $cfile);
curl_setopt($cr, CURLOPT_COOKIEJAR, $cfile);
if ($ref!='') curl_setopt($cr, CURLOPT_REFERER, $ref);
curl_setopt($cr, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($cr, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($cr, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($cr, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cr, CURLOPT_POST, 1);
curl_setopt($cr, CURLOPT_POSTFIELDS, $post);
$r = curl_exec($cr);
curl_close ($cr);
) malformed |
| 25.01.2009, 00:27 | azgard | , .
$postdata = array(
'_removeImage' => 'true',
'firstName' => 'first',
'lastName' => 'last',
'location' => 'usa',
'homepage' => 'http://abc.com'
);
, :)
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); |
| 25.01.2009, 00:28 | | post-, , :
array('interests'=>'no interests'); |
| 25.01.2009, 00:29 | Hector | ... , |
| 25.01.2009, 00:37 | Hector | $postdata = array(
'_removeImage' => 'true',
'firstName' => 'first',
'lastName' => 'last',
'location' => 'usa',
'homepage' => 'http://abc.com',
'bio' => 'my bio here',
'interests' => 'no'
);
|
| 25.01.2009, 00:41 | azgard | ) " , "
'filedata'=>'( )', |
| 25.01.2009, 00:59 | cossack | , - :
boundary=---------------------------257062384924075
POST ? |
| 25.01.2009, 01:32 | azgard | "boundary" - .
hxxp://book.itep.ru/4/4/mime.htm
"5.1.1. ", :peace: |
| 25.01.2009, 02:08 | TerVer | $postdata = array(
'filedata'=>'@/home/admin/yourfilename.gif',
'_removeImage' => 'true',
'firstName' => 'first',
'lastName' => 'last',
'location' => 'usa',
'homepage' => 'http://abc.com',
'bio' => 'my bio here',
'interests' => 'no'
);
(html) |
| 25.01.2009, 10:56 | bataka | ,
my($data, $boundary) = boundary($postdata);
push @header, "Content-Type: multipart/form-data; boundary=$boundary";
$curl->setopt(CURLOPT_POST, 1);
$curl->setopt(CURLOPT_POSTFIELDS, $data);
sub boundary {
my $hash = shift;
my $return;
my $boundary = '7d93b9242503ee';
for (keys %$hash){
my $name = $_;
my $val = $hash->{$_};
$return .= qq^--$boundary\x0d\x0a^;
$return .= qq^Content-Disposition: form-data; name="$name"\x0d\x0a\x0d\x0a^;
$return .= qq^$val\x0d\x0a^;
}
$return .= '--' . $boundary . '--';
return ($return, $boundary);
} |
| 25.01.2009, 11:09 | Hector | ... (
azgard . ( 3 ) ))
Content-Type: multipart/form-data; boundary=---------------------------257062384924075 = ? |
| 25.01.2009, 11:31 | deschain | :) , , . |
| 25.01.2009, 13:19 | oxenus | multipart/form-data .
- , .
, :
$post_data = array();
$post_data['fileupload'] = "@datafile.txt";
$post_data['field1'] = "someinfo1";
$post_data['field2'] = "someinfo2";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1 );
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
datafile.txt - , multipart/form-data
Content-Type: multipart/form-data; boundary=--------------------------- |
| 25.01.2009, 13:26 | Hector | $post = array(
'filedata' => '',
'_removeImage' => 'true',
'firstName' => 'first',
'lastName' => 'last',
'location' => 'usa',
'homepage' => 'http://abc.com',
'bio' => 'my bio here',
'interests' => 'no'
);
$r = postreq($url,$post,$ref); //
)
oxenus - )
, 1 ) |
| 25.01.2009, 13:33 | Hector | ) Sorry, an unexpected error has occurred |
| 25.01.2009, 13:50 | Hector | ))))))) ) |
| 25.01.2009, 14:33 | azgard | :write: hxxp://phpclub.ru/talk/ |
| 25.01.2009, 19:15 | Hector | :write: hxxp://phpclub.ru/talk/ :beer: |
| 22.02.2009, 00:00 | Barbados | "php curl multipart post" php.net , - :)) |
| 22.02.2009, 00:01 | | MWA-HA-HA!!! |
| 23.03.2009, 11:51 | baddan | :
http://habrahabr.ru/blogs/php/42158/ |
| 05.06.2009, 07:20 | digg |
Content-Type: multipart/form-data; boundary=---------------------------29288280821954
Content-Length: 2706
-----------------------------29288280821954
))))
? . |
| 05.06.2009, 09:54 | medar | , $postdata - ,
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postdata));
.
? |
| 05.06.2009, 10:02 | digg | .
, .
, . |
| 05.06.2009, 10:10 | Hector | /showpost.php?p=105653&postcount=16
1 |
| 05.06.2009, 10:46 | deschain | medar, - . .
. |
| 05.06.2009, 10:49 | DiamondMaster | , POST , ,
|
| 05.06.2009, 11:05 | Barbados | |
| 20.06.2009, 19:53 | kalombo | pycurl ? - - . |
| 09.07.2009, 00:53 | qbec | , .
$post_design=array(
'bodybgcol' => '6B6666',
'bodybgimg' => '',
...
, :
Content-Disposition: form-data; name="commentbgimg"; filename=""
Content-Type: application/octet-stream
( ).
...
'datebgscr' => 'scroll',
'save' => ''
);
, $result = curl_exec($ch);
HTTP/1.1 200 OK Server: nginx/0.6.31 Date: Wed, 08 Jul 2009 21:35:25 GMT Content-Type: text/html; charset=windows-1251 Transfer-Encoding: chunked Connection: close |
| 09.07.2009, 13:13 | azgard | , |
| 09.07.2009, 14:22 | qbec | $post_design=array(
'bodybgcol' => '6B6666',
'bodybgimg' => '', // ,
'bodybgpos' => 'top left',
'bodybgrep' => 'repeat',
'bodybgscr' => 'scroll',
'postbgcol' => 'FCF8F8',
'topiccol' => 'FCF5F5',
'postbgfcol' => '0E0E0E',
'postbgimg' => '',
'postbgpos' => 'top left',
'postbgrep' => 'repeat',
'postbgscr' => 'scroll',
'commentbgcol' => '',
'commentbgfcol' => '0048AB',
'commentbgimg' => '',
'commentbgpos' => 'top left',
'commentbgrep' => 'repeat',
'commentbgscr' => 'scroll',
'textareabgcol' => '0048AB',
'textareabgimg' => '',
'textareabgpos' => 'top left',
'textareabgrep' => 'repeat',
'textareabgscr' => 'scroll',
'menubgcol' => '0048AB',
'menubgimg' => '',
'menubgpos' => 'top left',
'menubgrep' => 'repeat',
'menubgscr' => 'scroll',
'headbgcol' => '0048AB',
'blogtitleclr' => '0048AB',
'blogsignclr' => '0048AB',
'headbgimg' => '',
'headbgpos' => 'top left',
'headbgrep' => 'repeat',
'headbgscr' => 'scroll',
'bottombgcol' => '0048AB',
'bottombgimg' => '',
'bottombgpos' => 'top left',
'bottombgrep' => 'repeat',
'bottombgscr' => 'scroll',
'crumbsbgcol' => '0048AB',
'crumbsbgimg' => '',
'crumbsbgpos' => 'top left',
'crumbsbgrep' => 'repeat',
'crumbsbgscr' => 'scroll',
'datebgcol' => '0048AB',
'datebgimg' => '',
'datebgpos' => 'top left',
'datebgrep' => 'repeat',
'datebgscr' => 'scroll',
'save' => ''
);
$html_design = zapros($next_url[1],$user_agent,$ref,$post_design,TRUE,TRUE);
function zapros($url,$user_agent,$referer,$post,$post_true, $header_true) {
$ch = curl_init($url);
// curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_REFERER, $referer);
if ($post_true){
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_POST, TRUE);
}else {
curl_setopt($ch, CURLOPT_POST, FALSE);
}
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, $header_true);
curl_setopt($ch, CURLOPT_NOBODY, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "coockies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "coockies.txt");
curl_setopt ($ch, CURLOPT_COOKIE, "hlSession=en; hl=en");
$result = curl_exec($ch);
curl_close($ch);
sleep(rand(0,1));
return $result;
}
-. |
| 09.07.2009, 15:55 | azgard | 'bodybgimg' => '@', // ,
@ -
function zapros($url, $user_agent ,$post) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, "coockies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "coockies.txt");
curl_setopt ($ch, CURLOPT_COOKIE, "hlSession=en; hl=en");
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_POST, 1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
|
| 09.07.2009, 15:55 | medar | , POST , ,
:) . |
| 09.07.2009, 16:29 | qbec | @ -
... . . Transfer-Encoding: chunked.
, . Accept-Encoding gzip,deflate ? Transfer-Encoding: chunked?
//
Transfer-Encoding: chunked ,
- ... nginx chunked .
? |
| 11.07.2009, 10:21 | gcc | , :)
, 40 , :) |
| 12.07.2009, 02:24 | azgard | Transfer-Encoding: chunked ,
- ... nginx chunked .
?
curl_setopt($ch, CURLOPT_NOBODY, false); curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
|
| 12.07.2009, 06:19 | ziavra | Transfer-Encoding: chunked ? , . :
CURLOPT_HTTP_TRANSFER_DECODING
Pass a long to tell libcurl how to act on transfer decoding. If set to zero, transfer decoding will be disabled, if set to 1 it is enabled (default). libcurl does chunked transfer decoding by default unless this option is set to zero. (added in 7.16.2)
libcurl, .
curl_setopt ($ch, CURLOPT_HTTP_TRANSFER_DECODING, 0);
http 1.0, :-)
curl_setopt ($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
- , curl'u php |
| 13.08.2009, 22:10 | kavopero |
POST /form.php -----------------------------16505299403966
Content-Disposition: form-data; name="pn"
ZWU5d2Utd1pJ
-----------------------------16505299403966
Content-Disposition: form-data; name="domain"
dombimbom
-----------------------------16505299403966
Content-Disposition: form-data; name="MAX_FILE_SIZE"
1048576
-----------------------------16505299403966
Content-Disposition: form-data; name="service_type"
dns
-----------------------------16505299403966
Content-Disposition: form-data; name="service_type_radio"
on
-----------------------------16505299403966
Content-Disposition: form-data; name="ns_host[0]"
ns1.dombimbom.com
-----------------------------16505299403966
Content-Disposition: form-data; name="ns_host[1]"
ns2.dombimbom.com
-----------------------------16505299403966
Content-Disposition: form-data; name="ns_host[2]"
-----------------------------16505299403966
Content-Disposition: form-data; name="ns_host[3]"
-----------------------------16505299403966
Content-Disposition: form-data; name="ns_host[4]"
-----------------------------16505299403966
Content-Disposition: form-data; name="button"
Set up
-----------------------------16505299403966
Content-Disposition: form-data; name="record_host"
-----------------------------16505299403966
Content-Disposition: form-data; name="ttl"
86400
-----------------------------16505299403966
Content-Disposition: form-data; name="record_type"
-----------------------------16505299403966
Content-Disposition: form-data; name="record_priority"
-----------------------------16505299403966
Content-Disposition: form-data; name="record_value"
-----------------------------16505299403966
Content-Disposition: form-data; name="site_url"
-----------------------------16505299403966
Content-Disposition: form-data; name="site_title"
-----------------------------16505299403966
Content-Disposition: form-data; name="frame"
3
-----------------------------16505299403966
Content-Disposition: form-data; name="site_description"
-----------------------------16505299403966
Content-Disposition: form-data; name="search_keyword"
-----------------------------16505299403966
Content-Disposition: form-data; name="google_email_cname_host"
-----------------------------16505299403966--
:
curl_setopt($ch, CURLOPT_URL, 'http://url.com/form.php');
curl_setopt($ch, CURLOPT_POST, 1);
$pa=array(
"pn"=>"ZWU5d2Utd1pJ",
"domain"=>"dombimbom",
"MAX_FILE_SIZE"=>"1048576",
"service_type"=>"dns",
"service_type_radio"=>"on",
"ns_host[0]"=>"ns1.dombimbom.com",
"ns_host[1]"=>"ns2.dombimbom.com",
"ns_host[2]"=>'',
"ns_host[3]"=>'',
"ns_host[4]"=>'',
"button"=>"Set up",
"record_host"=>'',
"ttl"=>"86400",
"record_type"=>'',
"record_priority"=>'',
"record_value"=>'',
"site_url"=>'',
"site_title"=>'',
"frame"=>"3",
"site_description"=>'',
"search_keyword"=>'',
"google_email_cname_host"=>''
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $pa);
$page = curl_exec($ch);
. ? |
| 13.08.2009, 22:39 | Barbados | |
| 14.08.2009, 00:12 | oso | , Referer |
| 14.08.2009, 00:19 | kavopero | ?
?
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,60);
curl_setopt($ch, CURLOPT_TIMEOUT,60);
curl_setopt($ch, CURLOPT_URL, 'https://url.com');
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5');
curl_setopt($ch, CURLOPT_REFERER, 'https://url.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cocc_cookie.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cocc_cookie.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$page = curl_exec($ch); |
| 14.08.2009, 07:15 | Barbados | , |
| 14.08.2009, 07:25 | Barbados | -
-
$content = curlGET("http://www.google.com/1", "http://www.google.com/", $data['cookie_file'] , $data['proxy'], 60, 1);
-
$post_data = "a=1&b=2";
$content = curlPOST($post_data, "http://www.google.com/1", "http://www.google.com/", $data['cookie_file'] , $data['proxy'], 60, 1);
-:
function curlPOST($post_data, $url, $referrer='', $cookie_file='', $proxy='', $timeout=60, $header=0) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERAGENT, "Opera/9.10 (Windows NT 5.1; U; en)");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
if($referrer) curl_setopt($ch, CURLOPT_REFERER, $referrer);
if($header) curl_setopt($ch, CURLOPT_HEADER, 1);
if($proxy) {curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
//curl_setopt($ch, CURLOPT_PROXYUSERPWD, "user:pass");
//curl_setopt($ch, CURLOPT_PROXYAUTH, 1);
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
if($cookie_file) {
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);
}
$content=curl_exec($ch);
curl_close($ch);
return $content;
}
function curlGET($url, $referrer='', $cookie_file='', $proxy='', $timeout=60, $header=0) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERAGENT, "Opera/9.10 (Windows NT 5.1; U; en)");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
if($referrer) curl_setopt($ch, CURLOPT_REFERER, $referrer);
if($header) curl_setopt($ch, CURLOPT_HEADER, 1);
if($proxy) {curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
//curl_setopt($ch, CURLOPT_PROXYUSERPWD, "user:pass");
//curl_setopt($ch, CURLOPT_PROXYAUTH, 1);
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file);
curl_setopt ($ch, CURLOPT_COOKIE, $cookie_file);
$content=curl_exec($ch);
curl_close($ch);
return $content;
}
multipart-post-e $post_data ,
$pa=array(
"pn"=>"ZWU5d2Utd1pJ",
"domain"=>"dombimbom");
$content = curlPOST($pa, "http://www.google.com/1", "http://www.google.com/", $data['cookie_file'] , $data['proxy'], 60, 1); |
| 14.08.2009, 07:30 | Barbados | "pn"=>"ZWU5d2Utd1pJ", |
| 14.08.2009, 12:59 | kavopero | Barbados , , , :( |
| 14.08.2009, 13:42 | azgard | , |
| 21.08.2009, 11:55 | | :
POST /a-myljpost/ HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.13) Gecko/2009073022 MRA 5.5 (build 02746) Mozilla/4.0 (compatible; MSIE 7.0b; FuckBulleting Windows NT 5.2)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: randomhit=371890545; __utma=169734460.2664029598841237000.1250059683.12 50145383.1250835280.7; __utmz=169734460.1250059683.1.1.utmcsr=(direct)|ut mccn=(direct)|utmcmd=(none); __utmc=169734460; session=FE5E2CE390A0EDA6AE879F3F8BBC
Content-Type: multipart/form-data; boundary=---------------------------54363239114604
Content-Length: 1464
-----------------------------54363239114604
Content-Disposition: form-data; name="tagcount"
0
-----------------------------54363239114604
Content-Disposition: form-data; name="ffont"
0
-----------------------------54363239114604
Content-Disposition: form-data; name="fcolor"
0
-----------------------------54363239114604
Content-Disposition: form-data; name="fsize"
0
-----------------------------54363239114604
Content-Disposition: form-data; name="d"
1
-----------------------------54363239114604
Content-Disposition: form-data; name="a"
myljpost
-----------------------------54363239114604
Content-Disposition: form-data; name="aa"
new
-----------------------------54363239114604
Content-Disposition: form-data; name="s"
-----------------------------54363239114604
Content-Disposition: form-data; name="message"
dfgsdf
-----------------------------54363239114604
Content-Disposition: form-data; name="addfile"; filename=""
Content-Type: application/octet-stream
-----------------------------54363239114604
Content-Disposition: form-data; name="rub"
0
-----------------------------54363239114604
Content-Disposition: form-data; name="vstat"
0
-----------------------------54363239114604
Content-Disposition: form-data; name="music"
-----------------------------54363239114604
Content-Disposition: form-data; name="Submit"
??N???N??????N?N?
-----------------------------54363239114604--
$opts = array();
$opts['tagcount'] = 0;
$opts['ffont'] = 0;
$opts['fcolor'] = 0;
$opts['fsize'] = 0;
$opts['d'] = 1;
$opts['a'] = 'myljpost';
$opts['aa'] = 'new';
$opts['s'] = '';
$opts['message'] = time();
$opts['addfile'] = '';
//Content-Disposition: form-data; name="addfile"; filename=""
//Content-Type: application/octet-stream
$opts['rub'] = 0;
$opts['vstat'] = 0;
$opts['music'] = '';
$opts['Submit'] = '';
curl
CURLOPT_POSTFIELDS, $opts
200 OK
?
, |
| 21.08.2009, 12:15 | kavopero | ,
$opts['Submit'] = ''; ? |
| 21.08.2009, 14:28 | qbec | $opts['addfile'] = '';
//Content-Disposition: form-data; name="addfile"; filename=""
//Content-Type: application/octet-stream
$opts['Submit'] = '';
$opts['Submit'] = ''; - , , .
$opts['addfile'] = ''; :
-----------------------------54363239114604
Content-Disposition: form-data; name="addfile"
:
Content-Disposition: form-data; name="addfile"; filename=""
Content-Type: application/octet-stream
, ( ). |
| 04.09.2009, 09:01 | gcc | , ( ).
?
Content-Disposition: form-data; name="file[upload]"; name=""
Content-Type: application/octet-stream |
| 04.09.2009, 19:51 | gcc |
'file[upload]' => "@111.txt",
'file[upload]' => "@",
, 200
:) |
| 04.09.2009, 19:55 | gcc | 200,
@ |
| 04.09.2009, 19:59 | pina | $opts['Submit'] = ''; - , , .
$opts['addfile'] = ''; :
-----------------------------54363239114604
Content-Disposition: form-data; name="addfile"
:
Content-Disposition: form-data; name="addfile"; filename=""
Content-Type: application/octet-stream
, ( ).
POST Content-Disposition & Content-Type, filed_name1=filed_value1&filed_name2=filed_value2 ..
to gcc
? POST? :
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); ? |
| 04.09.2009, 20:04 | gcc | $userinfo = array(
'ururu' => '123',
'arara' => '321',
'files[upload]' => "@111.txt" // ,
);
$ch1 = curl_init();
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch1, CURLOPT_TIMEOUT, 60);
curl_setopt($ch1, CURLOPT_URL, "http://url.com");
curl_setopt($ch1, CURLOPT_POST, 1);
curl_setopt($ch1, CURLOPT_POSTFIELDS, $userinfo);
curl_setopt($ch1, CURLOPT_COOKIE, $finalcook);
curl_setopt($ch1, CURLOPT_USERAGENT, "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0");
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch1, CURLOPT_HEADER, 1);
$res1 = curl_exec($ch1);
curl_close($ch1);
,
- ,
'files[upload]' => '',
, |
| 04.09.2009, 20:12 | pina | , )
. , ) ,
$bound = 'tralalala'; //replace rand str
$headers[]='Content-Type: multipart/form-data; boundary=---------------------------'.$bound;
$userinfo = array(
'ururu' => '123',
'arara' => '321'
);
$files = array(
'files[upload]'=>''
);
$request_data = array();
foreach ($userinfo as $name=>$value)
{
$request_data[]='-----------------------------'.$bound;
$request_data[]='Content-Disposition: form-data; name="'.$name.'"';
$request_data[]='';
$request_data[]=$value;
}
foreach ($files as $name=>$path)
{
$file_type='application/octet-stream';
$file_content=file_get_contents($path);
$request_data[]='-----------------------------'.$bound;
$request_data[]='Content-Disposition: form-data; name="'.$name.'"; filename="'.$file_name.'"';
$request_data[]='Content-Type: '.$file_type;
$request_data[]='';
$request_data[]=$file_content;
}
$request_data[]='-----------------------------'.$bound.'--';
$request_data[]='';
$request_data_ready=join("\r\n", $request_data);
$ch1 = curl_init();
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch1, CURLOPT_TIMEOUT, 60);
curl_setopt($ch1, CURLOPT_URL, "http://url.com");
curl_setopt($ch1, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch1, CURLOPT_POST, 1);
curl_setopt($ch1, CURLOPT_POSTFIELDS, $request_data_ready);
curl_setopt($ch1, CURLOPT_COOKIE, $finalcook);
curl_setopt($ch1, CURLOPT_USERAGENT, "User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0");
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch1, CURLOPT_HEADER, 1);
$res1 = curl_exec($ch1);
curl_close($ch1); |
| 04.09.2009, 20:14 | gcc | , content lenght ? |
| 04.09.2009, 20:25 | gcc |
, 200 ( 302), .
|
| 04.09.2009, 20:26 | pina | ... ? |
| 04.09.2009, 20:35 | pina | ) , |
| 04.09.2009, 20:37 | gcc | :
:
-----------------------------112581211315693
Content-Disposition: form-data; name="files[upload]"; filename=""
Content-Type: application/octet-stream
|
| 04.09.2009, 20:41 | pina | HttpHeadres ?
$ch1 = curl_init();
:
print '<pre>';
print $request_data_ready;
exit;
"", |
| 04.09.2009, 20:50 | gcc |
$headers[]='Content-Type: multipart/form-data; boundary=---------------------------112581211315693';
, ,
Content-Type: multipart/form-data; boundary=---------------------------112581211315693
Content-Length: 1631
$headers ? |
| 04.09.2009, 20:52 | pina |
curl_setopt($ch1, CURLOPT_HTTPHEADER, $headers); |
| 04.09.2009, 20:56 | gcc | , Validation error, $request_data_ready |
| 04.09.2009, 20:57 | pina | Validation error
? |
| 04.09.2009, 21:00 | pina | $bound ? |
| 04.09.2009, 21:02 | gcc | ,
Content-Type: multipart/form-data; boundary=---------------------------112581211315693
,
Validation error
, ,
200 |
| 04.09.2009, 21:05 | pina | boundary
, ,
, .. , JS ... ) |
| 04.09.2009, 21:05 | gcc |
content lenght |
| 04.09.2009, 21:07 | gcc | JS
,
Content-Type: multipart/form-data; boundary=---------------------------241681333820307
|
| 04.09.2009, 21:09 | pina | content lenght
?)
$content_len=strlen($request_data_ready);
$headers[]="Content-Length: ".$content_len; |
| 04.09.2009, 21:15 | gcc | :)
Validation error
, CURLINFO_HEADER_OUT CURLOPT_DEBUGFUNCTION
|
| 04.09.2009, 21:17 | pina | ! !
. |
| 04.09.2009, 21:19 | gcc | Content-Type: multipart/form-data; boundary=---------------------------112581211315693 Content-Length: 1505 Expect: 100-continue "
|
| 04.09.2009, 21:19 | qbec | ?
, . ( ) @ , "@''" , .
POST Content-Disposition & Content-Type, filed_name1=filed_value1&filed_name2=filed_value2 ..
" " , . |
| 04.09.2009, 21:20 | gcc |
curl_setopt($ch1, CURLINFO_HEADER_OUT, true);
$res1 = curl_exec($ch1);
var_dump(curl_getinfo($ch1,CURLINFO_HEADER_OUT));
curl_close($ch1);
string(387) "POST /add HTTP/1.1 User-Agent: User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0 Host: google.com Accept: */* Referer: http://google.com Cookie: 123=321 Content-Type: multipart/form-data; boundary=---------------------------112581211315693 Content-Length: 1505 Expect: 100-continue " |
| 04.09.2009, 21:41 | pina | http://bugs.caucho.com/view.php?id=3282
:pardon:
gcc qbec ) |
| 04.09.2009, 21:50 | gcc |
, ,
,
'files[upload]' => "@",
, bool(false)
|
| 04.09.2009, 22:28 | qbec | ( ) , . |
| 04.09.2009, 22:31 | gcc |
,
373-936-868 |
| 06.09.2009, 17:42 | kerry | , wp. :write::
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('image' => '@avatar.gif',
'post_title' => 'dadu',
'post_content' => 'duda',
'from_tab' => 'upload',
'action' => 'upload',
'post_id' => $post_ID,
'_wpnonce' => $_wpnonce,
'_wp_http_referer' => "http://xxx.com/wp-admin/upload.php?style=inline&tab=upload&post_id=".$post_ID."&_wpnonce=".$_wpnonce."&ID&action&paged",
'submit' => 'Yes'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
$result = curl_exec($ch);
echo $result;
HttpFox :
image filename="avatar.gif" Content-Type: image/gif
post_title 11111
post_content 2
from_tab upload
action upload
post_id -1252244754
_wpnonce 23a6f79fbe
_wp_http_referer /wp-admin/upload.php?style=inline&tab=upload&post_id=-1252244754&_wpnonce=23a6f79fbe
(Request-Line) POST /wp-admin/upload.php?style=inline&tab=upload&post_id=-1252244754 HTTP/1.1
Host xxx.com
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 WebMoney Advisor
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language ru,en-us;q=0.7,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset windows-1251,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Referer http://xxx.com/wp-admin/upload.php?style=inline&tab=upload&post_id=-1252244754&_wpnonce=23a6f79fbe
Cookie __utma=192671155.869432844959502100.1238351258.124 7995822.1249151952.8; __utmz=192671155.1238351258.1.1.utmcsr=(direct)|ut mccn=(direct)|utmcmd=(none); dbx-postmeta=grabit:0+|1-|2-|3-|4-|5-&advancedstuff:0-|1-|2-; dbx-pagemeta=grabit:0-|1-|2-|3-|4-|5-|6-&advancedstuff:0-; __utma=250040836.1286413075.1246075409.1247235355. 1247669391.7; __utmz=250040836.1247235355.6.4.utmccn=(referral)| utmcsr=xxx.com|utmcct=/wp-admin/index.php|utmcmd=referral; wordpressuser=belka; wordpresspass=2ebd61a8f2a538c69fb4f4e2e7bac5da
Content-Type multipart/form-data; boundary=---------------------------26681719213985
Content-Length 3043
, :) |
| 18.04.2010, 10:31 | sensey | Content-Type=multipart/form-data; boundary=---------------------------
, ...... |
| 18.04.2010, 11:35 | kalombo | , . |
| 18.04.2010, 13:13 | sensey | , .
, ...
?
POSTDATA =-----------------------------23805158906729
Content-Disposition: form-data; name="__VIEWSTATE"
$code
-----------------------------23805158906729
Content-Disposition: form-data; name="toUserID"
244964843
-----------------------------23805158906729
Content-Disposition: form-data; ..
( k )
$boundary = rand (10000000000000, 30000000000000);
$postdata = "-----------------------------$boundary";
$postdata_array = array(
"__VIEWSTATE" => "$code-----------------------------$boundary",
"toUserID" => "$id-----------------------------$boundary"); ..
? \r\n
? |
| 21.04.2010, 14:27 | sensey | $post_data = array('__VIEWSTATE'=>$code,
'toUserID'=>$id,
'hdnInboxID'=>'',
'hdnFromUserID'=>'',
'hdnFromProfile'=>'true',
'hdnWink'=>'',
'hdnCfid'=>'',
'hdnCvpn'=>'',
'hdnLhZip'=>'',
'hdnLhUsername'=>'',
'hdnForumID'=>'',
'hdnStartAt'=>'',
'hdnIsContact'=>'False',
'txtTo'=>$name,
'txtSubject'=>$title,
'Mood'=>'rdNone',
'txtBody'=>$body,
'file'=>'', # 'file' => "@/full/path/to/file.txt",
'btnSend2'=>'Send Message');
, ....
POSTDATA =-----------------------------974127529778
Content-Disposition: form-data; name="__VIEWSTATE"
$code
-----------------------------974127529778
Content-Disposition: form-data; name="toUserID"
$id
-----------------------------974127529778
Content-Disposition: form-data; name="hdnInboxID"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnFromUserID"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnFromProfile"
true
-----------------------------974127529778
Content-Disposition: form-data; name="hdnWink"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnCfid"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnCvpn"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnLhZip"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnLhUsername"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnForumID"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnStartAt"
-----------------------------974127529778
Content-Disposition: form-data; name="hdnIsContact"
False
-----------------------------974127529778
Content-Disposition: form-data; name="txtTo"
$name
-----------------------------974127529778
Content-Disposition: form-data; name="txtSubject"
$title
-----------------------------974127529778
Content-Disposition: form-data; name="Mood"
rdNone
-----------------------------974127529778
Content-Disposition: form-data; name="txtBody"
$body
-----------------------------974127529778
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream
-----------------------------974127529778
Content-Disposition: form-data; name="btnSend2"
Send Message
-----------------------------974127529778--
|
| 20.06.2010, 15:36 | mumi | $referer='https://domain.com/my_account/my_account_manage_domain.php?dn='.$dn.'&edit';
$array = array(
'pn'=>$pn,
'domain'=>$domain,
'MAX_FILE_SIZE'=>'1048576',
'service_type'=>'dns',
'service_type_radio'=>'on',
'ns_host[0]'=>$ns1,
'ns_host[1]'=>$ns2,
'ns_host[2]'=>'',
'ns_host[3]'=>'',
'ns_host[4]'=>'',
'button'=>'Set up',
'record_host'=>'',
'ttl'=>'86400',
'record_type'=>'',
'record_priority'=>'',
'record_value'=>'',
'site_url'=>'',
'site_title'=>'',
'frame'=>'3',
'site_description'=>'',
'search_keyword'=>'',
'google_email_cname_host'=>'',
);
//$bound = md5(uniqid(time()));
$bound = rand(10000000000000,99999999999999);
$request_data = array();
foreach ($array as $name=>$value)
{
$request_data[]='-----------------------------'.$bound;
$request_data[]='Content-Disposition: form-data; name="'.$name.'"';
$request_data[]='';
$request_data[]=$value;
}
$request_data[]='-----------------------------'.$bound.'--';
$request_data[]='';
$request_data_ready=join("\r\n", $request_data);
$content_len=strlen($request_data_ready);
$head=array(
'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.1',
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language: ru-RU,ru;q=0.9,en;q=0.8',
'Accept-Encoding: gzip,deflate',
'Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7',
'Keep-Alive: 115',
'Connection: Keep-Alive',
'Referer: '.$referer.'',
'Content-Type: multipart/form-data; boundary=---------------------------'.$bound.'',
'Content-Length: '.$content_len.'',
);
$ch1 = curl_init("https://domain.com/my_account/my_account_manage_domain_edit_proc.php");
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch1, CURLOPT_TIMEOUT, 60);
curl_setopt($ch1, CURLOPT_HTTPHEADER, $head);
curl_setopt($ch1, CURLOPT_POST, 1);
curl_setopt($ch1, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($ch1, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch1, CURLOPT_POSTFIELDS, $request_data_ready);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch1, CURLOPT_HEADER, 1);
curl_setopt($ch1, CURLINFO_HEADER_OUT, true);
$edit2 = curl_exec($ch1);
var_dump(curl_getinfo($ch1,CURLINFO_HEADER_OUT));
curl_close($ch1);
string(832) "POST /my_account/my_account_manage_domain_edit_proc.php HTTP/1.1 Host: domain.com Cookie: co_cc_P=TVNERENCQ2hI; co_cc_EMAIL=d21pemV2bWh2bGJAZ21haWwuY29t; PHPSESSID=3c1e206abc55f04748a4dbe1d6ee8385; cun=R0FWQUFWWExWMg%3D%3D; ip_76_76_100_66=CA; co_cc_LT=OExOMzhYMzNOVktm User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: ru-RU,ru;q=0.9,en;q=0.8 Accept-Encoding: gzip,deflate Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: Keep-Alive Referer: https://domain.com/my_account/my_account_manage_domain.php?dn=Ymdna2ZjbXBR&edit Content-Type: multipart/form-data; boundary=---------------------------619321905 Content-Length: 2222 Expect: 100-continue "
, , - ,
, ... . |
vBulletin® 3.8.6. Copyright ©2000-2011, Jelsoft Enterprises Ltd. : zCarot
|