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

curl-and-php

Re: help with cURL + PHP

From: Stephen Pynenburg <spynenburg_at_gmail.com>
Date: Mon, 3 Nov 2014 21:20:31 -0500

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
Received on 2014-11-04