A
A
Alexander2016-05-04 13:52:38
Browsers
Alexander, 2016-05-04 13:52:38

How to change port in curl to get html?

I want to get html from the site, but curl connects through port 80, but I need it through any other. Because 80 cannot be used.
How can I do that?
I write like this: curl example.com -o "example.html"
What should I add to this line? Or some kind of add-on.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-05-04
@Rsa97

curl on your side opens a client port for itself (first free one > 1024). Show the server response
Well, or immediately allow the redirect
curl -L http://example.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question