|
Post by alexfish on Jul 30, 2017 23:04:16 GMT 1
Hi Vovchik
Think that is an unwanted default Callback IE it is trying to start a default browser
this stems from the fact , all callbacks are sent to the get url , yet sometimes the above happens ! ?
as long as can get View via the load
https://en.wikipedia.org/wiki/Semion_Mogilevich
then all is well but if the view does not load then will need to look further. here possible looking HTTPS
BR Alex
|
|
|
Post by alexfish on Aug 19, 2017 21:18:30 GMT 1
Hi All Latest SeachEngine + http load & display, TEXT only Depends -- libcurl and libgtk-2 and html2text Usage -- enter text to search for in the entry > press return from results click on url (blue text) if want to view page in the entry box press return on the entry box click the last Page sequence displays the last web view / also works on fresh boot if a web view has been loaded = easy way to view last page Pages X X X also work on fresh boot if a search has been dowloaded all are saved in folder in home DIR 'my_bacon_web_results' hopeful next edition to have own parser for the html , ADDED : just tried to connect to this forum using libcurl get error yet using exec curl it works , any ideas this what the reply using libcurl [ProBoards] ****** Attention required! ****** The system has interpreted your activity or connection to this page as suspicious. If you believe you've received this message wrongly, this may simply be a false positive caused by an error on our end, and we apologize for the inconvenience.
Simply fill out the challenge below to regain access to the site you were attempting to browse.
[Submit]
For help, or to report any issues you're currently having, please visit the ProBoards_Support_Forum.
ProBoards ProBoards Policies Need Help? Create_a_Free_Forum Terms_of_Service Support_Forum Visit_our_Homepage Community_Guidelines Help_Guide Advertise_With_Us Privacy_Policy Server_Status
© 2013 ProBoards, Inc. ProBoards® is a registered trademark of ProBoards, Inc. BR Alex Hi All found the problem looks like the forum now requires a user agent have been testing forum using cURL user agent an looks like getting success with curl_easy_setopt(easyhandle, CURLOPT_USERAGENT, "libcurl-agent/7.13.2"); if no further bugs show will be updating the search engine @ post #1 to have option load url from the search results these results need to be parsed to make them gtk label compatable also looking to see if can the saved results FLTK help view compatible . If a FLTK parsed file will work then think a dillo type viewer possible @ Peter If possible can U test the forum stats demo HEREBR Alex
|
|
|
Post by Pjot on Aug 20, 2017 10:58:04 GMT 1
Thanks Alex, Apparently, they now check on the "User-Agent" field of the HTTP header. It is the so-called "CloudFare" DDOS protection which works that way. But still, if I add as a User-Agent a string like "BaCon" then they consider my GET to be a hacking attempt. And if I fill in something like "Mozilla" then the very same program can perform the GET requests successfully. Also your "libcurl" agent string seems to work. So what a poor check to use. The forum checker was updated. BR Peter PS this forum starts to suck anyway, now they are adding more and more warnings about suppressing advertisements. I will try to see if there is some other alternative. In the meantime, a nice way to avoid advertisements is to put this hosts file in your system. It will redirect all spam to localhost (eg /dev/null) and the website cannot detect you are avoiding their trash.
|
|
|
Post by alexfish on Aug 20, 2017 16:38:48 GMT 1
Hi Peter
the hosts file had to be adapted for the rpi
had to edit the local host bits like so
# your information back to a company.
#<localhost> #127.0.0.1 localhost #127.0.0.1 localhost.localdomain #255.255.255.255 broadcasthost #::1 localhost #127.0.0.1 local #fe80::1%lo0 localhost #</localhost> 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
#<shock-sites> # For example, to block unpleasant pages, try:
as for testing the user agent , this worked for a while , hence had to look further as regards accepting the cookie noted from a direct call , this is the bit as per the forum demo
HTTP/1.1 200 OK Date: Sun, 20 Aug 2017 12:53:05 GMT Content-Type: text/html; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Set-Cookie: __cfduid=dde967f2b19881f22cd02a94a17db24de1503233585; expires=Mon, 20-Aug-18 12:53:05 GMT; path=/; domain=.proboards.com; HttpOnly X-Frame-Options: SAMEORIGIN Server: cloudflare-nginx CF-RAY: 39157e54d38c0a6c-LHR
1ef5
now in process of testing the COOKIE option in lib curl
added this line to the curl demo
curl_easy_setopt(easyhandle, CURLOPT_COOKIEFILE, ""); /* start cookie engine */
will report back if this one starts to fail
BR Alex
|
|
|
Post by alexfish on Aug 21, 2017 0:12:12 GMT 1
Thanks Alex, PS this forum starts to suck anyway, now they are adding more and more warnings about suppressing advertisements. I will try to see if there is some other alternative. In the meantime, a nice way to avoid advertisements is to put this hosts file in your system. It will redirect all spam to localhost (eg /dev/null) and the website cannot detect you are avoiding their trash. And this RSS Feed leaves a lot to be desired , esp from a Chromium point of view BR Alex
|
|
|
Post by alexfish on Aug 21, 2017 0:52:17 GMT 1
Hi All Latest SeachEngine + http load & display, TEXT only Depends -- libcurl and libgtk-2 and html2text Usage -- enter text to search for in the entry > press return from results click on url (blue text) if want to view page in the entry box press return on the entry box click the last Page sequence displays the last web view / also works on fresh boot if a web view has been loaded = easy way to view last page Pages X X X also work on fresh boot if a search has been dowloaded all are saved in folder in home DIR 'my_bacon_web_results' hopeful next edition to have own parser for the html , BR Alex Attachments:curlduck.bac.bz2 (7.23 KB)
|
|
|
Post by Pjot on Aug 21, 2017 19:43:28 GMT 1
Thanks Alex, Interesting program, and nice to see what can be done with cURL. Your program already block ads BTW I have updated the 'bfchecker' program once more, it contained a bug with fetching the "total members". Regards Peter
|
|
|
Post by bigbass on Aug 22, 2017 19:46:16 GMT 1
Hey Alex
I switched over to mint 18.2 mate version 64 bit working fine for me with your code
this will be good for cut and paste code snippets or other text only uses
Thanks Joe
|
|