cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: help with cURL + PHP

From: Mladen Jovic <mladen.jovic_at_hotmail.com>
Date: Tue, 4 Nov 2014 08:14:27 +0100

Hmm, thanks for your answer.

I'm not sure if i was clear enought. My idea was to put data in first and second input, and then manually write captcha and manually submit the form.

Br Mladen

<div>-------- Original message --------</div><div>From: Stephen Pynenburg <spynenburg_at_gmail.com> </div><div>Date:04/11/2014 07:32 (GMT+01:00) </div><div>To: curl with PHP <curl-and-php_at_cool.haxx.se> </div><div>Cc: </div><div>Subject: Re: help with cURL + PHP </div><div>
</div>
I think your problem is with the web site and not with cURL (there is
nothing really wrong with your code as it is).
I can't read Slovenian, but it looks like below where it says:
"Prosimo, prepišite varnostno kodo v spodnje vnosno polje (velikost črk se
ne upošteva)."
It is asking you to input a CAPTCHA/verification code. This kind of
measure, unfortunately, is designed to prevent exactly what you're trying
to do.

Stephen

On Mon, Nov 3, 2014 at 5:30 PM, Mladen Jovic <mladen.jovic_at_hotmail.com>
wrote:

> Hello,
>
> i saw this example code for cURL on:
> http://curl.haxx.se/libcurl/php/examples/httpfileupload.html
>
> i want to ask you if you can help me how i can use this for remote forms?
>
>
> For example: https://raz.zav-zdruzenje.si/infocenter/Search.aspx
>
> in this form i would like to fill up first and second input, but with your
> example looks like this is not possible for remote forms.
>
>
>
> My code now looks like: <?php $ch = curl_init("
> https://raz.zav-zdruzenje.si/infocenter/Search.aspx"); curl_setopt($ch,
> CURLOPT_POSTFIELDS,
> array('ctl00$ICContentPlaceHolder$dBoxFrom'=>"24.10.2014",
> 'ctl00$ICContentPlaceHolder$tbVehicleRegistrationNumber'=>'LJ FF 350'));
> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $postResult = curl_exec($ch);
> curl_close($ch); print "$postResult";
>
> ?>
>
> but no success with this code for now
>
>
> i hope you will have time to help me with this, cuz i spent almost 5hours
> with no success
>
>
> P.S: I'm not programer so i would like some help for beginner :) I'm sory
> if i didn't do something right, because i'm using first time mail lists.
>
>
>
> Thanks, Mladen
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2014-11-04