EdgarsK Posted February 28, 2010 Report Share Posted February 28, 2010 Sveiki, jautājum seskojošs curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_REFERER,$url); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1); curl_setopt($ch, CURLOPT_PROXY, $proxyServer); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'read_header'); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8'); padodot šo curl initializaciju, man ir tada sajuta ka posts aiziet tikai proxijam bet talak no proxija uz doto adresi neaiziet, ta varetu but ? un ja ta irk o darit ? lai aizietu uz URL nevis PROXY Quote Link to comment Share on other sites More sharing options...
2easy Posted February 28, 2010 Report Share Posted February 28, 2010 varbūt, ka curl ir ok, bet tas proxy vnk gļuko un kko neņem pretī / nesūta tālāk? varbūt var pa taisno bez proxy vai caur citu proxy? Quote Link to comment Share on other sites More sharing options...
waplet Posted February 28, 2010 Report Share Posted February 28, 2010 Kāpēc tu domā, ka neaiziet? Pārbaudi ko viņš saņem atpakaļ.. gala saitā ieliec, lai uztaisas kūkijs. Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 28, 2010 Author Report Share Posted February 28, 2010 waplet - viss sance, print_r($_REQ..) parada ka posts ir sanjemts bet kas ir divaini :/ ir input lauki value="<?=(isset($_POST[".."]):$_POST[".."]:"")?> netiek paradits nekas. :/ Quote Link to comment Share on other sites More sharing options...
2easy Posted February 28, 2010 Report Share Posted February 28, 2010 (edited) lol, tb tā arī saņem php sourci responsā??? :D ja jau vsp kkādu atbildi saņem, tad jau proxy kaut cik strādā. drīzāk pārbaudi no kkāda localhost uz savu serveri (bez proxy), vai vsp post lauki normāli aiziet ;) varbūt kkas vnk nenosūtījās... Edited February 28, 2010 by 2easy Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 28, 2010 Author Report Share Posted February 28, 2010 :/ 2easy nepaliec smiekligs, ne nesanemu es paradu tev ka ir :) .. value="" .. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.