1
vote
1answer
57 views

HTML served from localhost is being modified by ISP [closed]

I took my laptop to a local restaurant yesterday to do some work setting up a new web app. I get the server in place, and created a simple HTML page: <html> <body>Hello, ...
0
votes
2answers
56 views

Is there a way to direct a HTTP server to upload file to the other HTTP server? [closed]

In my project, I need to do this: server1 ---http-download (curl)---> my pc ---http-upload(curl)---> server2 This is obviously duplicating traffic. I wonder if there is a method to direct ...
0
votes
1answer
86 views

How to specify GET path when sending web request to an IP with cURL?

Using output from the command below, % curl -v stackoverflow.com/questions * About to connect() to stackoverflow.com port 80 (#0) * Trying 198.252.206.16... * Connected to stackoverflow.com ...
4
votes
2answers
1k views

Why are DNS lookups not respecting /etc/nsswitch.conf & /etc/host.conf?

I have an issue where hostnames are being looked up from DNS even though they are present in /etc/hosts. I have the following configured: /etc/host.conf: order hosts,bind /etc/nsswitch.conf: ...
0
votes
1answer
133 views

On my virtual EC2 instance, what is my IP will a webpage detect if I curl it?

I have one small server on EC2. Let's say I cURL facebook.com. What IP will facebook see as the "client address"? Is it random?
0
votes
1answer
113 views

Stange stream of HTTP GET requests in apache logs, from amazon ec2 instances

I just had a look at my apache logs, and I see a lot of very similar requests: GET / HTTP/1.1 User-Agent: curl/7.24.0 (i386-redhat-linux-gnu) libcurl/7.24.0 \ NSS/3.13.5.0 zlib/1.2.5 libidn/1.18 ...
1
vote
2answers
55 views

Download and save a file with proof that it was downloaded from a specific server/url on a specific date?

Assuming the file was downloaded over http is this possible? I'm guessing there could be some way to do it using a hash and a timestamp however I'm not sure how you could prove nothing was tampered ...
1
vote
1answer
511 views

HTTP Request Header limit hard coded in Apache 2.2

I looked up some other question concerning this on SF, they revolved around a maximum limit being set for LimitRequestFieldSize and LimitRequestLine at 8K. httpd's documentation confirms the limit, ...
-2
votes
1answer
173 views

Unable to acces Nagios from Ec2

I have installed Nagios by following this tutorial here. But when I tried to connect to localhost/nagios3 using curl from console, making sure that Nagios is installed and running(since I'm getting ...
0
votes
1answer
350 views

curl cookie and cookiejar trouble

I've got a script that curls a site using a specific cookie value in a cookie file. When I run this on my local system, the server returns the same value to my cookie jar, as per my expectations. When ...
1
vote
2answers
5k views

Using curl to request URL that redirects to relative URL with anchor tag

I'm using curl to request a URL that redirects to a different URL using a Location: line like: Location:/path/to/resource#name As I understand it, that line in the redirect response is invalid per ...
3
votes
1answer
667 views

Using curl to make a HEAD request with a hard timeout

I'd like to use curl to send a HTTP HEAD request to a URL to verify that it is working correctly (server is up and sends a successful response). At the end, I need the final HTTP response code ...
1
vote
2answers
520 views

CURL - saving multiple HTTP responses

I've learned that we can send multiple HTTP requests with CURL by doing this: curl -I http://linuxbyexample.co.nr http://lne.blogdns.com/lbe or this: xargs curl -I < url-list.txt How can we ...
0
votes
3answers
345 views

using curl to trigger a notification over http e.g. when a long running task has completed?

Today I left work with a long running task running in the shell. For the sake of argument let's say I'm using 'wc -l' to count lines in a huge file. I'd like to get a notification when it is done, but ...
0
votes
1answer
2k views

How do I test HTTP Pipelinning?

I am trying to test if site/server/whatever has ability to pipeline HTTP request. So far, I think it is possible to send several request through one curl session, like: curl ...
9
votes
4answers
23k views

How do I make cURL use keepalive from the command line?

I'm trying to verify that HTTP persistent connections are being used during communication with a Tomcat webserver I've got running. Currently, I can retrieve a resource on my server from a browser ...
0
votes
1answer
1k views

retrieve file size from HTTP headers without downloading the file with CURL (no HEAD)

What i want to do is knowa file size and not download it. I've tried it with HEAD but the server doesn't respond curl_setopt($curl, CURLOPT_NOBODY, true); if i quit this , it will , but it will ...
2
votes
2answers
1k views

SSL / HTTP / No Response to Curl

I am trying to send commands to a SOAP service, and getting nothing in reply. The SOAP service is at a completely separate site from either server I am testing with. I have written a dummy script ...