HEAD with WebClient?
I am going to assume the answer is no but.... Is there a way to use WebClient to send the HEAD method and return the headers as a string or something similar? ...
I am going to assume the answer is no but.... Is there a way to use WebClient to send the HEAD method and return the headers as a string or something similar? ...
I have never used Api's before. I am trying to sms enable my website. My sms provider provides a HTTP API to send messages from my website. It works well. However, its not secure. The api requires number, message, Username and password. And can be sent using post or get. There is no https support. I am currently passing the number and me...
Hello! I'm trying to list all files (. DOC and. PDF) contained in a specific Web directory. The problem is that I do not have access. I can only download with the full path of the file. Example: Directory 1: http://xxx.site.com/uploads/local20/40 Files: 45677.pdf 54354.doc 65767.doc 54354.pdf 43243.pdf ... Directory 2: h t t...
I would like to capture an image from the camera on Android, and send it to Google App Engine, which will store the image in the blob store. Sounds simple enough, and I can get the multi-part POST to GAE happening, but storing to the Blob store requires the servlet return an HTTP redirect (302). So, I need a connection that can follow re...
In What conditions are closing a HTTP connection necessary? ...
Hi The follow http post request send data using multipart/form-data content type. -----------------------------27311326571405\r\nContent-Disposition: form-data; name="list"\r\n\r\n8274184\r\n-----------------------------27311326571405\r\nContent-Disposition: form-data; name="list"\r\n\r\n8274174\r\n-----------------------------2731132...
Let me start off by saying, I'm using the twisted.web framework. Twisted.web's file uploading didn't work like I wanted it to (it only included the file data, and not any other information), cgi.parse_multipart doesn't work like I want it to (same thing, twisted.web uses this function), cgi.FieldStorage didn't work ('cause I'm getting th...
I want to invoke a wcf webservice using a url query string. Like if I have a webserive that expose a ADD method of adding two integers. I want to invoke this service using http://mywebserviceAddress/Add?x=4&y=5 Is it possible to do this. I am new to webservices, this may be very easy for most of you. ...
I've written my own Android ContentProvider for accessing certain Internet resources. I'm trying to write some unit tests, but I do not want those tests to actually access the Internet. Behind the scenes, my code is using the DefaultHttpClient class to access the web. Basically, I'd like to know how I can use the ProviderTestCase2 cla...
Hi, What would be the programming model for an http 1.1 client implementation with support for pipeling? I am interested in pipeling POSTs. ...
i am reading Dive into HTML5: Offline web apps: Cache manifest ... but it must be served with the content type text/cache-manifest. If you are running an Apache-based web server, you can probably just put an AddType directive in the .htaccess file at the root of your web directory AddType text/cache-manifest .manifes...
I'm trying to email someone a link to my iPhone app in the app store. I've tried Apple's app-link-maker. I've tried many of the suggestions here (and elsewhere) to use http: or itms: or itms-app:. Or to use itunes.apple.com or phobos.apple.com or ax.search or several others. I can't seem to get ONE link that works in both situations:...
i am making a request to a 3rd party RESTful service using M$'s HttpClient. it works flawlessly (and is very easy to implement) except for this one instance. here is a breakdown from the provider as to what is occurring during the error: "The way the POST to the group resource works is that when it completes, it does a HTTP 302 redirect ...
On the Microformats spec for RESTful URLs: GET /people/1 return the first record in HTML format GET /people/1.html return the first record in HTML format and /people returns a list of people So is /people.html the correct way to return a list of people in HTML format? ...
I am trying to mimic the functionality of this curl command in Java: curl --basic --user username:password -d "" http://ipaddress/test/login I wrote the following using Commons HttpClient 3.0 but somehow ended up getting an 500 Internal Server Error from the server. Can someone tell me if I'm doing anything wrong? public class HttpBa...
Hey guys, I am building an application in Cocoa that uses a local Ruby on Rails web server to communicate data and info between the client and server. There are times in the program where I need to poll the web server for some information using HTTP GET requests, but I'm not sure if that is the best approach. Are there any alternatives ...
I have a php api that is being accessed via Flash. It grabs some content for flash and then does some book keeping. The problem is, the book keeping can take several seconds, and the php api can be accessed in the same manner anywhere from 10-500 times before the Flash App has loaded everything from it. Sense I'm using flash to access ...
I'm trying to post to an ASP.NET Site via Sockets by sending the Raw HTTP Request information however; when trying to read the response I get "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host." Here is the code I am using Public Function PerformGetRequest() As String ...
I have two websites: one with Lighttpd with PHP and second with Apache and neither of this handle chunked transfer encoding properly. I send this request from my mobile, J2ME and there is no possibility to change this transfer type to any other. So my only way to go is to handle chunked transfer enconcoded requests in other way. Any so...
We have a piece of legacy code that (ab)uses fopen() calls to resources over HTTP: @fopen('http://example.com'). We want to move example.com to another host and then send 301 Permanently Moved. However, we are not entirely sure if @fopen() will follow this. Initial tests show me that it does not. But maybe I miss some configuration pie...