Click here to Skip to main content
15,880,651 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: How to learn sql in advanced level? Pin
Richard MacCutchan27-Nov-15 22:05
mveRichard MacCutchan27-Nov-15 22:05 
AnswerRe: How to learn sql in advanced level? Pin
scottgp30-Nov-15 0:55
professionalscottgp30-Nov-15 0:55 
AnswerRe: How to learn sql in advanced level? Pin
l a u r e n25-Dec-15 23:59
l a u r e n25-Dec-15 23:59 
QuestionTrying to find a simple script, a link redirecting script Pin
Davidson James17-Nov-15 9:34
Davidson James17-Nov-15 9:34 
AnswerRe: Trying to find a simple script, a link redirecting script Pin
codetrode19-Dec-15 5:41
codetrode19-Dec-15 5:41 
Questionajax live search box using php and mysql.the live search is not working. Pin
Member 1127090216-Nov-15 10:06
Member 1127090216-Nov-15 10:06 
AnswerRe: ajax live search box using php and mysql.the live search is not working. Pin
ZurdoDev17-Nov-15 9:48
professionalZurdoDev17-Nov-15 9:48 
Questionget response from aspx web form with Curl Pin
Member 121134434-Nov-15 5:04
Member 121134434-Nov-15 5:04 
im trying to get one response from a form inside a aspx web page but i only get the same page without styles.

Whats is my error? Exist other alternative?

URL WEB SITE

PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://the web site/');
curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/32.0.1700.107 Chrome/32.0.1700.107 Safari/537.36');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, "ddlCiudad=05001&ddlEntidadEspecialidad=121-True-3110-05001-Juzgado de Circuito-Familia&rblConsulta=1&a5kuj4redmp05gddr1lfjij5=05001316000420140143000");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');  //could be empty, but cause problems on some hosts
curl_setopt($ch, CURLOPT_COOKIEFILE, '');  //could be empty, but cause problems on some hosts
$answer = curl_exec($ch);
if (curl_error($ch)) {
    echo curl_error($ch);
}
echo $answer;
//another request preserving the session

curl_setopt($ch, CURLOPT_URL, 'http://the web site/');
curl_setopt($ch, CURLOPT_POST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, "");
$answer = curl_exec($ch);
if (curl_error($ch)) {
    echo curl_error($ch);
}
echo $answer;
?>



CASE NUMBER: 05001316000420140143000

Now, i need this answer:

URL IMAGE RESPONSE


Thanks!
QuestionPHP serialize/unserialize Pin
Michel PIERRE15-Sep-15 23:36
professionalMichel PIERRE15-Sep-15 23:36 
SuggestionRe: PHP serialize/unserialize Pin
Richard MacCutchan16-Sep-15 0:03
mveRichard MacCutchan16-Sep-15 0:03 
GeneralRe: PHP serialize/unserialize Pin
Michel PIERRE16-Sep-15 0:55
professionalMichel PIERRE16-Sep-15 0:55 
GeneralRe: PHP serialize/unserialize Pin
Michel PIERRE16-Sep-15 4:22
professionalMichel PIERRE16-Sep-15 4:22 
QuestionAjax and PHP Pin
Nostromo996-Aug-15 11:05
Nostromo996-Aug-15 11:05 
AnswerRe: Ajax and PHP Pin
Peter_in_27806-Aug-15 20:36
professionalPeter_in_27806-Aug-15 20:36 
GeneralWould appreciate some feedback for my new PHP package Pin
User 1184286230-Jul-15 22:41
User 1184286230-Jul-15 22:41 
GeneralRe: Would appreciate some feedback for my new PHP package Pin
Richard MacCutchan30-Jul-15 23:46
mveRichard MacCutchan30-Jul-15 23:46 
QuestionDefault View a chart by clicking a button in the same page. Pin
ibrahim199323-Jul-15 21:30
ibrahim199323-Jul-15 21:30 
SuggestionRe: Default View a chart by clicking a button in the same page. Pin
syhs8928-Jul-15 8:51
syhs8928-Jul-15 8:51 
QuestionCannot send session cache limiter - headers already sent Pin
Jassim Rahma15-May-15 11:16
Jassim Rahma15-May-15 11:16 
AnswerRe: Cannot send session cache limiter - headers already sent Pin
speda127-Sep-15 13:12
speda127-Sep-15 13:12 
AnswerRe: Cannot send session cache limiter - headers already sent Pin
ribluc30-May-16 20:43
ribluc30-May-16 20:43 
Questionsave image by PHP Pin
Member 836750210-May-15 5:16
Member 836750210-May-15 5:16 
General[REPOST] Pin
Sascha Lefèvre10-May-15 6:18
professionalSascha Lefèvre10-May-15 6:18 
AnswerRe: save image by PHP Pin
Sudera13-May-15 21:07
Sudera13-May-15 21:07 
QuestionPHP-SOAP: How to authenticate? Pin
Muhammed Özdemir7-May-15 19:26
Muhammed Özdemir7-May-15 19:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.