http

Do most browsers make multiple HTTP Requests when displaying a PDF from within the browser

Do most (IE, FF, Safari, Chrome, Opera) make multiple HTTP Requests for a PDF file when displaying the PDF in a browser? I am working on an issue integrating with WebTrends Web Analytics software, and the statistics around PDFs appear to be incorrect. Support told me that because WebTrends parses the Web Servers access logs to determine ...

Perform HTTP Post from within Excel and Parse Results

I have access to an API. The API takes an XML post as input and then returns an XML response with the relevant data. I want to Send the HTTP Post to the Server (Authentication and Request will be sent together) Receive the response (One of the options to be returned is CSV or XML) Insert the data into the appropriate rows and column...

What is webdev.webservice process?

Hi, I have an asp.net page which calls a webservice. I wanted to check the webservice request and response strings by using fiddler - HTTP Debugging Proxy tool. When I see the sessions there is a process called: "webdev.webservice:2148" What is webdev.websrvice? ...

How to restrict what files a desktop app can download from an online server

The closest example I can think of is iTunes. I'm thinking about a system where a server stores loads of files, and each user only has access to those they have paid for. Using a desktop app, they can download these to their local PC where they are stored as regular files. How might one approach this? I can see a couple of possible opti...

How to send a HTTP POST Request in Delphi using WinInet api.

Hello, I am trying to make HTTP Requests from Delphi using the WinInet functions. So far I have: function request:string; var hNet,hURL,hRequest: HINTERNET; begin hNet := InternetOpen(PChar('User Agent'),INTERNET_OPEN_TYPE_PRECONFIG or INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0); if Assigned(hNet) then begin try hURL := I...

What do I need in order to save binary file post?

Hi, I have a client program that uploads files to the server. Initially I used POST method and have mod_python to save a uploaded file. Then, I found that a file might contain some special character so by the time my function is called, some of data have been cut off because I think that Apache is parsing data that I am POSTing. Thus, i...

urllib2 not retrieving entire HTTP response

I'm perplexed as to why I'm not able to download the entire contents of some JSON responses from FriendFeed using urllib2. >>> import urllib2 >>> stream = urllib2.urlopen('http://friendfeed.com/api/room/the-life-scientists/profile?format=json') >>> stream.headers['content-length'] '168928' >>> data = stream.read() >>> len(data) 61058 >>...

Is it possible for my linux machine (with no GUI) to hit Twitter sign up page, and then spit out a captcha in a webpage format

So that I can just type in the letters and register (through my linux box's IP)? (twitter uses recaptcha) Is there some way to grab that javascript, output it into a webpage. Then submit it through? ...

Interrupting POST request

I'm working on ASP.NET file uploader and currently trying to resolve the following issue: Assume at some moment the server side HttpModule decides that incoming data stream is too long and must be aborted. So the code that would handle this situation at first glance would be very simple. Like this: try { ... if (size >= maxSize) ...

Why do I get a CURLE_URL_MALFORMAT when trying to http post?

Here's the code (extracted from an existing application): CURL *curl = curl_easy_init(); _ASSERTE(curl); string url = "http://127.0.0.1:8000/"; char *data = "mode=test"; curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data); curl_easy_setopt(curl, CURLOPT_URL, url); CURLcode res = curl_easy_perform(curl); bool success = (res == CURLE_OK);...

.Net C# TcpClient / Socket HTTP Client Performance / Efficiency

Hi All, I'm writing an HTTP client using the .Net TcpClient / Sockets. So far, the client handles both Content-Length and chunked responses by iterating through the NetworkStream response (after writing a GET request to the TcpClient), parsing the headers and retrieving the relevant message body bytes / chunked bytes. To do this it us...

How to implement a web client in bash

Are you able to write a Bash script that will download an HTTP resource from the web? The inputs are: $hostname $port $path $output You can't: use external commands other than telnet (no sed, no awk, no wget, ...) use other shells You can: use /dev/tcp pseudo devices use telnet Your MUST pass this test (you can cha...

net/http and posting data to Google Checkout

I'm trying to post form data to Google Checkout using the following code: x = Net::HTTP.post_form(URI.parse('https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/[merchant_number_here]'), @params) When I attempt to submit using this line, I get the following error: Errno::ECONNRESET in PaymentsController#create Connectio...

resume uploads using HTTP?

Is it possible to resume interrupted uploads using HTTP Post? I am working on a project that uploads several files to a HTTP server. Thanks. ...

TypeError: ListControl, must set a sequence (python error)

I am using Python Mechanize to open a website, fill out a form, and submit that form. It's actually pretty simple. It works until I come across radio buttons and "select" input boxes. br.open(url) br.select_form(name="postmsg") br.form['subject'] = "Is this good for the holidays? " br.form['message'] = "I'm new to technology." br.form['...

How to submit a form with more than 1 submit button. Sending a POST to a website. (Python)

I am creating a script using Python Mechanize that can login to a website and submit a form. However, this form has 3 submit buttons (Preview, Post, and Cancel). I'm used to only one button... This is the form: <TextControl(subject=Is this good for the holidays? Anyone know about the new tech?)> <IgnoreControl(threads=<None>)> <Tex...

How do we pass parameters when doing HTTP Post?

I am working on an app where we have to pass specific web api parameters to a web app using HTTP POST. eg: apimethod name parameter1 value parameter2 value So do I use a string or URLEncodedPostData to send that data? It would be good if u help me with a code eg. I am using something like this but it doesnt post the data to the server. T...

HTTP request debugging: Getting a complete log of all HTTP requests sent by Firefox

What is the easiest way to obtain a complete log of all HTTP/HTTPS requests issued by Firefox during a browser session? The question is programming related insofar that obtaining a log of all HTTP/HTTPS requests issued is a great troubleshooting tool when developing webapps. ...

Sending HTTP request with multiple parameters having same name

I need to send a HTTP request (and get XML response) from Flash that looks similar to following: http://example.com/somepath?data=1&amp;data=2&amp;data=3 I.e. having several parameters that share same name, but have different values. Until now I used following code to make HTTP requests: var resp:XML = new XML(); resp.onLoad = func...

Python zlib not decodable when returned by an http response

I'm using Amazon S3 to serve static files. When the Content-Type is just 'text/css' and I haven't compressed the file, it is returned ok. If I try to zlib.compress() the contents that will be returned and change Content-Encoding to 'gzip', the browser cannot decode the result. In Chrome, the error is Error 330 net::ERR_CONTENT_DECODING...