Re: help with cURL + PHP
David Colter <[email protected]> Mon, 3 Nov 2014 19:25:14 -0500
| Newsgroups | gmane.comp.web.curl.php |
|---|---|
| Message-ID | <[email protected]> |
--===============1578669072== Content-Type: multipart/alternative; boundary="Apple-Mail=_037F3DF9-E7F4-4353-90E8-E0460C3335E8" --Apple-Mail=_037F3DF9-E7F4-4353-90E8-E0460C3335E8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Mladen, > https://raz.zav-zdruzenje.si/infocenter/Search.aspx = <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. When I look at the link you provided, I see 4 inputs. The 4th input = requires the characters from the image above to be submitted with the = form. Your code is only submitting 2, while the server wants 4 = postfields. The captcha image characters will likely be impossible to = detect and submit. You could search for another method to obtain the results you want. It = might require logging in, which can be done with cURL, but will take = some time to learn and code.=20 David= --Apple-Mail=_037F3DF9-E7F4-4353-90E8-E0460C3335E8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">Mladen,<div class=3D""><br class=3D""><div><blockquote = type=3D"cite" class=3D""><div class=3D""><a class=3D"_553k" = href=3D"https://raz.zav-zdruzenje.si/infocenter/Search.aspx" = target=3D"_blank" rel=3D"nofollow" style=3D"font-family: Helvetica, = Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; line-height: = 17.9400005340576px; white-space: pre-wrap; background-color: rgb(255, = 255, 255); color: rgb(59, 89, 152); cursor: pointer; text-decoration: = none;">https://raz.zav-zdruzenje.si/infocenter/Search.aspx</a></div><div = class=3D""><p style=3D"margin: 10px 0px 0px; padding: 0px; font-style: = normal; font-variant: normal; font-weight: normal; letter-spacing: = normal; orphans: auto; text-align: start; text-indent: 0px; = text-transform: none; widows: auto; word-spacing: 0px; = -webkit-text-stroke-width: 0px; white-space: pre-wrap; color: rgb(20, = 24, 35); font-family: Helvetica, Arial, 'lucida grande', tahoma, = verdana, arial, sans-serif; font-size: 13px; line-height: = 17.9400005340576px; background-color: rgb(255, 255, 255);" class=3D"">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.</p></div></blockquote></div><br class=3D""></div><div = class=3D"">When I look at the link you provided, I see 4 inputs. The 4th = input requires the characters from the image above to be submitted with = the form. Your code is only submitting 2, while the server wants 4 = postfields. The captcha image characters will likely be impossible to = detect and submit.</div><div class=3D""><br class=3D""></div><div = class=3D"">You could search for another method to obtain the results you = want. It might require logging in, which can be done with cURL, but will = take some time to learn and code. </div><div class=3D""><br = class=3D""></div><div class=3D"">David</div></body></html>= --Apple-Mail=_037F3DF9-E7F4-4353-90E8-E0460C3335E8-- --===============1578669072== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaHR0cDovL2Nv b2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vY3VybC1hbmQtcGhwCg== --===============1578669072==--