cariddi icon indicating copy to clipboard operation
cariddi copied to clipboard

Cant parse url list with ports

Open kiriknik opened this issue 2 years ago • 8 comments

Describe the bug If you provide url with port (not every web app stay on 80 and 443 port =) ) - cariddi cant parse it

like as

echo http://ya.ru:80 | cariddi
The URL provided is not built in a proper way: http://ya.ru:80

kiriknik avatar May 27 '22 13:05 kiriknik

Do you have the latest version? For me (v1.1.7) this is the output:

echo http://ya.ru:80 | cariddi
                 _     _     _ _ 
   ___ __ _ _ __(_) __| | __| (_)                                                                                                     
  / __/ _` | '__| |/ _` |/ _` | |                                                                                                     
 | (_| (_| | |  | | (_| | (_| | |                                                                                                     
  \___\__,_|_|  |_|\__,_|\__,_|_| v1.1.7                                                                                              
                                                                                                                                      
 > github.com/edoardottt/cariddi                                                                                                      
 > edoardoottavianelli.it
========================================
http://ya.ru:80/robots.txt
https://ya.ru/

Anyway, it redirects to https so you should use port 443 + https protocol.

echo "https://ya.ru:443" | cariddi

...

edoardottt avatar May 27 '22 13:05 edoardottt

I use latest version of this tool - check these two lines echo http://ya.ru:80 | cariddi -s -d 2 -e -plain -ot cariddi_result -ext 5 # works echo http://ya.ru:80 | cariddi -s -d 2 -e -plain -ot cariddi_result -ext 5 -intensive # error for url

kiriknik avatar May 27 '22 14:05 kiriknik

Thank you. I will take care of this

edoardottt avatar May 27 '22 14:05 edoardottt

Thank you for this tool)

kiriknik avatar May 27 '22 15:05 kiriknik

Hi! I've updated the development branch and tried to apply a patch to this problem. Try it (https://github.com/edoardottt/cariddi/tree/devel) and let me know if you see weird behaviours :) For any kind of problem just ping me here.

edoardottt avatar May 29 '22 07:05 edoardottt

@kiriknik any update?

edoardottt avatar Jun 04 '22 08:06 edoardottt

Some errors happenes with parsing, but i cant provide you an url))) Do you test it with a big list of urls:ports?

kiriknik avatar Jun 06 '22 09:06 kiriknik

Yes, but without an example of non working input it's difficult to test

edoardottt avatar Jun 06 '22 19:06 edoardottt